Skip to content

Commit

Permalink
reproduction setup
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyrohrbough committed Jul 1, 2022
1 parent bdf2141 commit f97b922
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
11 changes: 11 additions & 0 deletions cypress/e2e/22658.cy.js
Original file line number Diff line number Diff line change
@@ -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")
})
6 changes: 0 additions & 6 deletions cypress/e2e/spec.cy.js

This file was deleted.

14 changes: 14 additions & 0 deletions cypress/fixtures/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Issue 599</title>
</head>
<body>
<script type="text/javascript">
function redirect() {
window.location.href = "/cypress/fixtures/index2.html"
}
</script>
<button onclick='redirect()'>redirect</button>
</body>
</html>
7 changes: 7 additions & 0 deletions cypress/fixtures/index2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<head>
</head>
<body>
This page does nothing.
</body>
</html>
9 changes: 9 additions & 0 deletions cypress/fixtures/index3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<head>
<meta http-equiv="refresh" content="0; url=/cypress/fixtures/index.html" />
<title>Page Redirect</title>
</head>
<body>
This page is being redirected.
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"author": "Gleb Bahmutov <[email protected]>",
"license": "ISC",
"devDependencies": {
"cypress": "^10.3.0",
"ok-file": "1.5.2"
},
"repository": {
Expand Down

0 comments on commit f97b922

Please sign in to comment.