多维表格
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.

39 lines
1.1 KiB

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" });
await dashboard.toolbar.viewsMenu.verifyCollaborativeMode();
// enable view lock
await dashboard.toolbar.viewsMenu.click({
menu: "Collaborative View",
subMenu: "Locked View",
});
// verify view lock
await dashboard.toolbar.viewsMenu.verifyLockMode();
// enable collaborative view
await dashboard.toolbar.viewsMenu.click({
menu: "Locked View",
subMenu: "Collaborative View",
});
await dashboard.toolbar.viewsMenu.verifyCollaborativeMode();
});
});