Skip to content

Commit 9141a15

Browse files
Add retries to the Firefox e2e test of color picker widget (#357)
2 parents a484fc1 + 419ebe4 commit 9141a15

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

packages/pluggableWidgets/color-picker-web/cypress/integration/ColorPicker.spec.js

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,25 @@ describe("color-picker-web", () => {
3434
);
3535
}
3636
);
37-
it("button(Firefox)", { browser: "firefox" }, () => {
38-
cy.visit("/p/modePage");
39-
cy.wait(1000);
40-
cy.get(".mx-name-colorPicker3 .widget-color-picker-inner").should(
41-
"have.css",
42-
"background",
43-
"rgb(76, 175, 80)"
44-
);
45-
});
37+
it(
38+
"button(Firefox)",
39+
{
40+
retries: {
41+
runMode: 10,
42+
openMode: 10
43+
},
44+
browser: "firefox"
45+
},
46+
() => {
47+
cy.visit("/p/modePage");
48+
cy.wait(1000);
49+
cy.get(".mx-name-colorPicker3 .widget-color-picker-inner").should(
50+
"have.css",
51+
"background",
52+
"rgb(76, 175, 80)"
53+
);
54+
}
55+
);
4656
it("input box", () => {
4757
cy.get(".mx-name-tabPage2").click();
4858
cy.get(".mx-name-colorPicker17 input").should("have.value", "#4caf50");

0 commit comments

Comments
 (0)