mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 05:36:44 +00:00
test: project operations
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
committed by
Muhammed Mustafa
parent
137b721e71
commit
19ec22f10e
28
scripts/playwright/tests/projectOperations.spec.ts
Normal file
28
scripts/playwright/tests/projectOperations.spec.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { DashboardPage } from "../pages/Dashboard";
|
||||
import setup from "../setup";
|
||||
import { ToolbarPage } from "../pages/Dashboard/common/Toolbar";
|
||||
|
||||
test.describe("Project operations", () => {
|
||||
let dashboard: DashboardPage;
|
||||
let toolbar: ToolbarPage;
|
||||
let context: any;
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
context = await setup({ page });
|
||||
dashboard = new DashboardPage(page, context.project);
|
||||
toolbar = dashboard.grid.toolbar;
|
||||
});
|
||||
|
||||
test("rename, delete", async () => {
|
||||
await dashboard.clickHome();
|
||||
await dashboard.renameProject({
|
||||
title: "externalREST0",
|
||||
newTitle: "externalREST0x",
|
||||
});
|
||||
await dashboard.clickHome();
|
||||
await dashboard.openProject({ title: "externalREST0x" });
|
||||
await dashboard.clickHome();
|
||||
await dashboard.deleteProject({ title: "externalREST0x" });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user