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.
50 lines
1.4 KiB
50 lines
1.4 KiB
2 years ago
|
import { test } from "@playwright/test";
|
||
|
import { DashboardPage } from "../pages/Dashboard";
|
||
|
import setup from "../setup";
|
||
|
|
||
|
test.describe("Grid view locked", () => {
|
||
|
let dashboard: DashboardPage;
|
||
|
let context: any;
|
||
|
|
||
|
test.beforeEach(async ({ page }) => {
|
||
|
context = await setup({ page });
|
||
|
dashboard = new DashboardPage(page, context.project);
|
||
|
});
|
||
|
|
||
|
test("ReadOnly lock & collaboration mode", async () => {
|
||
|
// close 'Team & Auth' tab
|
||
|
await dashboard.closeTab({ title: "Team & Auth" });
|
||
|
await dashboard.treeView.openTable({ title: "Country" });
|
||
|
|
||
2 years ago
|
await dashboard.grid.toolbar.viewsMenu.verifyCollaborativeMode();
|
||
2 years ago
|
|
||
|
// enable view lock
|
||
2 years ago
|
await dashboard.grid.toolbar.viewsMenu.click({
|
||
2 years ago
|
menu: "Collaborative View",
|
||
|
subMenu: "Locked View",
|
||
|
});
|
||
|
|
||
|
// verify view lock
|
||
2 years ago
|
await dashboard.grid.toolbar.viewsMenu.verifyLockMode();
|
||
2 years ago
|
|
||
|
// enable collaborative view
|
||
2 years ago
|
await dashboard.grid.toolbar.viewsMenu.click({
|
||
2 years ago
|
menu: "Locked View",
|
||
|
subMenu: "Collaborative View",
|
||
|
});
|
||
|
|
||
2 years ago
|
await dashboard.grid.toolbar.viewsMenu.verifyCollaborativeMode();
|
||
2 years ago
|
});
|
||
2 years ago
|
|
||
|
test("Download CSV", async () => {
|
||
|
// close 'Team & Auth' tab
|
||
|
await dashboard.closeTab({ title: "Team & Auth" });
|
||
|
await dashboard.treeView.openTable({ title: "Country" });
|
||
|
|
||
|
await dashboard.grid.toolbar.viewsMenu.click({
|
||
|
menu: "Download",
|
||
|
subMenu: "Download as CSV",
|
||
|
});
|
||
|
});
|
||
2 years ago
|
});
|