Merge branch 'cz/bug/state/zustand' into update_lc

This commit is contained in:
Lucas Oliveira 2024-01-17 19:44:30 +01:00
commit 7ada6f20ac
7 changed files with 64 additions and 65 deletions

View file

@ -43,9 +43,7 @@ test.describe("drag and drop test", () => {
);
await page
.locator(
'//*[@id="root"]/div/div[1]/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/span[2]'
)
.getByTestId("edit-flow-button-e9ac1bdc-429b-475d-ac03-d26f9a2a3210-0")
.click();
await page.waitForTimeout(2000);

View file

@ -33,7 +33,8 @@ test.describe("group node test", () => {
return dt;
}, jsonContent);
// Now dispatch
page.waitForTimeout(2000);
await page.dispatchEvent(
'//*[@id="root"]/div/div[1]/div[2]/div[3]/div/div',
"drop",
@ -43,9 +44,7 @@ test.describe("group node test", () => {
);
await page
.locator(
'//*[@id="root"]/div/div[1]/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/span[2]'
)
.getByTestId("edit-flow-button-e9ac1bdc-429b-475d-ac03-d26f9a2a3210-0")
.click();
await page.waitForTimeout(2000);
@ -67,7 +66,6 @@ test.describe("group node test", () => {
});
await page.getByRole("button", { name: "Group" }).click();
await page.locator("div").filter({ hasText: "Star13756" }).nth(3).click();
const textArea = page.getByTestId("div-textarea-2");
const elementCountText = await textArea.count();
@ -80,5 +78,7 @@ test.describe("group node test", () => {
if (elementGroup > 0) {
expect(true).toBeTruthy();
}
// Now dispatch
});
});

View file

@ -51,9 +51,7 @@ test.describe("save component tests", () => {
);
await page
.locator(
'//*[@id="root"]/div/div[1]/div[2]/div[3]/div/div/div/div/div/div/div/div[2]/span[2]'
)
.getByTestId("edit-flow-button-e9ac1bdc-429b-475d-ac03-d26f9a2a3210-0")
.click();
await page.waitForTimeout(2000);
@ -75,7 +73,6 @@ test.describe("save component tests", () => {
});
await page.getByRole("button", { name: "Group" }).click();
await page.locator("div").filter({ hasText: "Star13756" }).nth(3).click();
let textArea = page.getByTestId("div-textarea-2");
let elementCountText = await textArea.count();