Skip to content

Commit 7f6cca4

Browse files
test(datagrid-web): fix failing e2e screenshots and add better delay handling
1 parent 6aaaa62 commit 7f6cca4

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
-2.72 KB
Loading
-5.06 KB
Loading

packages/pluggableWidgets/datagrid-web/e2e/filtering/DataGridFilteringIntegration.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test("datagrid-web filtering integration", async ({ page }) => {
4343

4444
await page.getByRole("columnheader", { name: "Company" }).getByRole("combobox").click();
4545
//await select("Company").click();
46-
await page.locator(`[role="option"]:has-text("Sierra Health Services Inc")`).click({ delay: 50 });
46+
await page.locator(`[role="option"]:has-text("Sierra Health Services Inc")`).click({ delay: 20 });
4747
//await option("Sierra Health Services Inc").click();
4848
await expect(await rows()).toHaveCount(2);
4949

Loading

packages/pluggableWidgets/datagrid-web/e2e/filtering/DataGridFilteringMulti.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ test.describe("datagrid-web filtering multi select", () => {
2020
await expect(await column(2).first()).toHaveText("Black");
2121
await expect(await column(2).last()).toHaveText("Blue");
2222
await enumSelect().click();
23-
await option("Pink").click({ delay: 10 });
23+
await option("Pink").click({ delay: 20 });
2424
await expect(await rows()).toHaveCount(6);
25-
await option("Blush").click({ delay: 50 });
25+
await option("Blush").click({ delay: 20 });
2626
await expect(await rows()).toHaveCount(8);
27-
await page.getByRole("columnheader", { name: "Color (enum)" }).getByRole("combobox").click();
27+
await page.getByRole("columnheader", { name: "Color (enum)" }).getByRole("combobox").click({ delay: 20 });
2828
const columnText = await column(2).allTextContents();
2929
await expect(columnText).toEqual(
3030
expect.arrayContaining(["Pink", "Pink", "Pink", "Blush", "Blush", "Pink", "Pink"])

packages/pluggableWidgets/datagrid-web/e2e/filtering/DataGridFilteringSingle.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ test.describe("datagrid-web filtering single select", () => {
6060
const booleanSelect = () => page.locator('.mx-name-drop_downFilter2[role="combobox"]');
6161

6262
await booleanSelect().click();
63-
await option("Yes").click({ delay: 10 });
63+
await option("Yes").click({ delay: 20 });
6464
const rowCount = await rows();
6565
await expect(rowCount).toHaveCount(11);
6666
await expect(await column(3).allTextContents()).toEqual(
6767
expect.arrayContaining(["Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes"])
6868
);
69-
await booleanSelect().click({ delay: 50 });
69+
await booleanSelect().click({ delay: 20 });
7070
await page.getByRole("row", { name: "Pets (bool)" }).getByRole("option").first().click();
7171
const columnText = await column(3).allTextContents();
7272
expect(columnText).toEqual(

0 commit comments

Comments
 (0)