From f97b922e20a58432d7f2d4ca5c3f24f33011d5c9 Mon Sep 17 00:00:00 2001 From: Emily Rohrbough Date: Fri, 1 Jul 2022 15:43:20 -0500 Subject: [PATCH] reproduction setup --- cypress/e2e/22658.cy.js | 11 +++++++++++ cypress/e2e/spec.cy.js | 6 ------ cypress/fixtures/index.html | 14 ++++++++++++++ cypress/fixtures/index2.html | 7 +++++++ cypress/fixtures/index3.html | 9 +++++++++ package.json | 1 + 6 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 cypress/e2e/22658.cy.js delete mode 100644 cypress/e2e/spec.cy.js create mode 100644 cypress/fixtures/index.html create mode 100644 cypress/fixtures/index2.html create mode 100644 cypress/fixtures/index3.html diff --git a/cypress/e2e/22658.cy.js b/cypress/e2e/22658.cy.js new file mode 100644 index 00000000..1a56f324 --- /dev/null +++ b/cypress/e2e/22658.cy.js @@ -0,0 +1,11 @@ +it('retries should on window object', () => { + cy.visit('/cypress/fixtures/index.html') + cy.contains('redirect').click() + cy.url().should('contain', "fixtures/index2.html") +}) + + +it('retries should on window object', () => { + cy.visit('/cypress/fixtures/index3.html') + cy.url().should('contain', "fixtures/index.html") +}) diff --git a/cypress/e2e/spec.cy.js b/cypress/e2e/spec.cy.js deleted file mode 100644 index 5e30bf9e..00000000 --- a/cypress/e2e/spec.cy.js +++ /dev/null @@ -1,6 +0,0 @@ -/// -describe('page', () => { - it('works', () => { - cy.visit('https://example.cypress.io') - }) -}) diff --git a/cypress/fixtures/index.html b/cypress/fixtures/index.html new file mode 100644 index 00000000..bb509d04 --- /dev/null +++ b/cypress/fixtures/index.html @@ -0,0 +1,14 @@ + + + + Issue 599 + + + + + + diff --git a/cypress/fixtures/index2.html b/cypress/fixtures/index2.html new file mode 100644 index 00000000..bd825afd --- /dev/null +++ b/cypress/fixtures/index2.html @@ -0,0 +1,7 @@ + + + + + This page does nothing. + + diff --git a/cypress/fixtures/index3.html b/cypress/fixtures/index3.html new file mode 100644 index 00000000..5e4beea8 --- /dev/null +++ b/cypress/fixtures/index3.html @@ -0,0 +1,9 @@ + + + + Page Redirect + + + This page is being redirected. + + diff --git a/package.json b/package.json index 143d5f54..84e20432 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "author": "Gleb Bahmutov ", "license": "ISC", "devDependencies": { + "cypress": "^10.3.0", "ok-file": "1.5.2" }, "repository": {