Skip to content

Commit

Permalink
chore: Assert using cy.window property so that assertion retries to r…
Browse files Browse the repository at this point in the history
…educe flaky in test (#28912)

* Assert using cy.window property so that it retries

* empty commit
  • Loading branch information
jennifer-shehane authored Feb 9, 2024
1 parent 6cad8ac commit d046bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/driver/cypress/e2e/cy/timers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ describe('driver/src/cy/timers', () => {
// now go ahead and run all the queued timers
return cy.pauseTimers(false)
})
.then(() => {
expect(win.bar).to.eq('bar')

cy.window().its('bar').should('eq', 'bar')
.and(() => {
// requestAnimationFrame should have passed through
// its high res timestamp from performance.now()
expect(rafStub).to.be.calledWithMatch(Number)
Expand Down

5 comments on commit d046bfc

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d046bfc Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.5/linux-arm64/develop-d046bfc264fc5845ff7f275c153d080ef21f2545/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d046bfc Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.5/linux-x64/develop-d046bfc264fc5845ff7f275c153d080ef21f2545/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d046bfc Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.5/darwin-x64/develop-d046bfc264fc5845ff7f275c153d080ef21f2545/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d046bfc Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.5/win32-x64/develop-d046bfc264fc5845ff7f275c153d080ef21f2545/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on d046bfc Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.6.5/darwin-arm64/develop-d046bfc264fc5845ff7f275c153d080ef21f2545/cypress.tgz

Please sign in to comment.