Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reproduction setup #91

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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