mirror of https://github.com/nocodb/nocodb
Raju Udava
2 years ago
committed by
Muhammed Mustafa
2 changed files with 61 additions and 0 deletions
@ -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" }); |
||||||
|
}); |
||||||
|
}); |
Loading…
Reference in new issue