created test to save flow and fix bug on nested dict
This commit is contained in:
parent
67c0791e30
commit
3c77728709
6 changed files with 28 additions and 2 deletions
20
src/frontend/tests/flowPage.spec.ts
Normal file
20
src/frontend/tests/flowPage.spec.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Page, test } from "@playwright/test";
|
||||
|
||||
test.describe("Flow Page tests", () => {
|
||||
async function goToFlowPage(page: Page) {
|
||||
await page.goto("http://localhost:3000/");
|
||||
await page.getByRole("button", { name: "New Project" }).click();
|
||||
}
|
||||
|
||||
test("save", async ({ page }) => {
|
||||
await goToFlowPage(page);
|
||||
await page.getByRole("button", { name: "Custom" }).click();
|
||||
await page
|
||||
.locator("div")
|
||||
.filter({ hasText: /^Custom Component$/ })
|
||||
.nth(4)
|
||||
.dragTo(page.locator(".react-flow__pane"));
|
||||
await page.locator("div:nth-child(4) > .extra-side-bar-buttons").click();
|
||||
await page.locator(".success-alert").click();
|
||||
});
|
||||
});
|
||||
5
src/frontend/tests/test-1.spec.ts
Normal file
5
src/frontend/tests/test-1.spec.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { test } from "@playwright/test";
|
||||
|
||||
test("test", async ({ page }) => {
|
||||
// Recording...
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue