Skip to content

Commit

Permalink
test: fix flaky config error test (#22808)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJW34 authored Jul 15, 2022
1 parent 198b28d commit 6d03596
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ describe('Launchpad: Error System Tests', () => {
})

it(`clears the error correctly after first 'try again' attempt`, () => {
cy.intercept('mutation-Main_ResetErrorsAndLoadConfig').as('resetErrorsAndLoadConfig')
cy.scaffoldProject('config-with-ts-syntax-error')
cy.openProject('config-with-ts-syntax-error')
cy.visitLaunchpad()
Expand All @@ -166,6 +167,8 @@ describe('Launchpad: Error System Tests', () => {
// Try again while the config is still invalid
cy.findByRole('button', { name: 'Try again' }).click()

cy.wait('@resetErrorsAndLoadConfig')

// Wait until config error is on screen again
cy.contains('h1', cy.i18n.launchpadErrors.generic.configErrorTitle)

Expand Down

1 comment on commit 6d03596

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6d03596 Jul 15, 2022

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 platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.3.1/darwin-arm64/develop-6d03596e031143c9c391231cfa722d55bd7f6128/cypress.tgz

Please sign in to comment.