mirror of https://github.com/nocodb/nocodb
Raju Udava
2 years ago
committed by
Muhammed Mustafa
2 changed files with 45 additions and 2 deletions
@ -0,0 +1,26 @@
|
||||
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.pagination({ page: ">" })).click(); |
||||
await dashboard.grid.verifyActivePage({ page: "2" }); |
||||
// click "<" to go to prev page
|
||||
(await dashboard.grid.pagination({ page: "<" })).click(); |
||||
await dashboard.grid.verifyActivePage({ page: "1" }); |
||||
}); |
||||
}); |
Loading…
Reference in new issue