mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-22 06:59:30 -06:00
'Fix' flaky redirect test (#19042)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=/timeout?ms=100" />
|
||||
<meta http-equiv="refresh" content="0; url=/redirect-timeout" />
|
||||
<title>Page Redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -43,6 +43,14 @@ const createApp = (port) => {
|
||||
})
|
||||
})
|
||||
|
||||
app.get('/redirect-timeout', (req, res) => {
|
||||
return Promise
|
||||
.delay(100)
|
||||
.then(() => {
|
||||
return res.send('<html><body>timeout</body></html>')
|
||||
})
|
||||
})
|
||||
|
||||
app.get('/custom-headers', (req, res) => {
|
||||
return res.set('x-foo', 'bar')
|
||||
.send('<html><body>hello there</body></html>')
|
||||
|
||||
Reference in New Issue
Block a user