fix(components): add data-testid to edit flow button for better testability and identification
fix(dragAndDrop.spec): update locator for edit flow button to use data-testid for better stability fix(group.spec): update locator for edit flow button to use data-testid for better stability fix(saveComponents.spec): update locator for edit flow button to use data-testid for better stability
This commit is contained in:
parent
3b3bfc9b5a
commit
4ebbafe493
4 changed files with 10 additions and 12 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue