Skip to content

Commit 2273565

Browse files
gooddaytodaykiselev
authored andcommitted
Added new test for the found error
Previously, if you press right arrow button at the end of tour, it ends. Now it doesn't ends and any action after right arrow do nothing
1 parent 87fa604 commit 2273565

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/cypress/integration/tour/navigation.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ context("Navigation", () => {
4747
cy.get(".introjs-showElement").should("not.exist");
4848
});
4949

50+
it("should exit the tour after right btn pressed at the end", () => {
51+
cy.get(".introjs-tooltiptext").contains("step one");
52+
cy.nextStep();
53+
cy.get(".introjs-tooltiptext").contains("step two");
54+
cy.realPress("ArrowRight");
55+
cy.get(".introjs-showElement").should("not.exist");
56+
});
57+
5058
it("should close the tour after clicking on the exit button", () => {
5159
cy.get(".introjs-showElement").should("exist");
5260
cy.get(".introjs-skipbutton").click();

0 commit comments

Comments
 (0)