Skip to content

Commit 0d9a2ae

Browse files
authored
chore: fix flaky tests inside the cypress 15 branch (#31959)
1 parent 1e3dc31 commit 0d9a2ae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/driver/cypress/e2e/commands/window.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,9 @@ describe('src/cy/commands/window', () => {
494494
return null
495495
})
496496

497-
it('throws after timing out', (done) => {
497+
it('throws after timing out', {
498+
defaultCommandTimeout: 100,
499+
}, (done) => {
498500
cy.$$('title').remove()
499501

500502
cy.on('fail', (err) => {

packages/driver/cypress/e2e/e2e/origin/commands/actions.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ context('cy.origin actions', { browser: '!webkit' }, () => {
250250
it('.go()', () => {
251251
cy.get('a[data-cy="dom-link"]').click()
252252
cy.go('back')
253+
cy.url().should('contain', '/fixtures/primary-origin.html')
253254
})
254255
})
255256

0 commit comments

Comments
 (0)