Skip to content

Commit 9959f40

Browse files
test(datagrid-web): add bigger delay on clicks
1 parent 2cb1fda commit 9959f40

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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: 1 });
46+
await page.locator(`[role="option"]:has-text("Sierra Health Services Inc")`).click({ delay: 10 });
4747
//await option("Sierra Health Services Inc").click();
4848
await expect(await rows()).toHaveCount(2);
4949

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ 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: 1 });
23+
await option("Pink").click({ delay: 10 });
2424
await expect(await rows()).toHaveCount(6);
25-
await option("Blush").click({ delay: 1 });
25+
await option("Blush").click({ delay: 10 });
2626
await expect(await rows()).toHaveCount(8);
2727
await page.getByRole("columnheader", { name: "Color (enum)" }).getByRole("combobox").click();
2828
const columnText = await column(2).allTextContents();
@@ -53,9 +53,9 @@ test.describe("datagrid-web filtering multi select", () => {
5353
await page.waitForLoadState("networkidle");
5454
await expect(await column(3).first()).toHaveText(expectedColumnText[0]);
5555
await roleSelect().click();
56-
await option("Economist").click({ delay: 1 });
56+
await option("Economist").click({ delay: 10 });
5757
await expect(await rows()).toHaveCount(6);
58-
await option("Public librarian").click({ delay: 1 });
58+
await option("Public librarian").click({ delay: 10 });
5959
await expect(await rows()).toHaveCount(10);
6060
await roleSelect().click({ delay: 1 });
6161
await page.waitForTimeout(300);
@@ -80,9 +80,9 @@ test.describe("datagrid-web filtering multi select", () => {
8080
await expect(await column(4).first()).toHaveText("W.R. Berkley Corporation");
8181
await expect(await column(4).last()).toHaveText("PETsMART Inc");
8282
await companySelect().click({ delay: 1 });
83-
await option("FMC Corp").click({ delay: 1 });
83+
await option("FMC Corp").click({ delay: 10 });
8484
await expect(await rows()).toHaveCount(2);
85-
await option("ALLETE, Inc.").click({ delay: 1 });
85+
await option("ALLETE, Inc.").click({ delay: 10 });
8686
await expect(await rows()).toHaveCount(6);
8787
await page.getByRole("columnheader", { name: "Company" }).getByRole("combobox").click({ delay: 1 });
8888
await page.waitForTimeout(300);

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: 1 });
63+
await option("Yes").click({ delay: 10 });
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();
69+
await booleanSelect().click({ delay: 10 });
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)