chore: fix flaky tests inside the cypress 15 branch (#31959)

This commit is contained in:
Bill Glesias
2025-06-27 14:51:10 -04:00
committed by GitHub
parent 1e3dc31820
commit 0d9a2aed46
2 changed files with 4 additions and 1 deletions

View File

@@ -494,7 +494,9 @@ describe('src/cy/commands/window', () => {
return null
})
it('throws after timing out', (done) => {
it('throws after timing out', {
defaultCommandTimeout: 100,
}, (done) => {
cy.$$('title').remove()
cy.on('fail', (err) => {

View File

@@ -250,6 +250,7 @@ context('cy.origin actions', { browser: '!webkit' }, () => {
it('.go()', () => {
cy.get('a[data-cy="dom-link"]').click()
cy.go('back')
cy.url().should('contain', '/fixtures/primary-origin.html')
})
})