mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
888 B
26 lines
888 B
import { test } from '@playwright/test'; |
|
import { DashboardPage } from '../pages/Dashboard'; |
|
import setup from '../setup'; |
|
|
|
test.describe('Grid pagination', () => { |
|
let dashboard: DashboardPage; |
|
let context: any; |
|
|
|
test.beforeEach(async ({ page }) => { |
|
context = await setup({ page }); |
|
dashboard = new DashboardPage(page, context.project); |
|
}); |
|
|
|
test('Access next page, prev page & offset page', async () => { |
|
// close 'Team & Auth' tab |
|
await dashboard.closeTab({ title: 'Team & Auth' }); |
|
|
|
await dashboard.treeView.openTable({ title: 'Country' }); |
|
// click ">" to go to next page |
|
await dashboard.grid.clickPagination({ page: '>' }); |
|
await dashboard.grid.verifyActivePage({ page: '2' }); |
|
// click "<" to go to prev page |
|
await dashboard.grid.clickPagination({ page: '<' }); |
|
await dashboard.grid.verifyActivePage({ page: '1' }); |
|
}); |
|
});
|
|
|