Skip to content

Commit

Permalink
chore: fix flaky debug progress test (#28958)
Browse files Browse the repository at this point in the history
* chore: fix flaky debug progress test

* empty commit
  • Loading branch information
jennifer-shehane committed Feb 22, 2024
1 parent 3cfca89 commit c3cbe6f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/app/cypress/e2e/debug.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('App - Debug Page', () => {

const run = options.testRun

run.totalInstanceCount = 5
run.totalInstanceCount = 3
if (run.completedInstanceCount === undefined) {
run.completedInstanceCount = 0
run.createdAt = (new Date()).toISOString()
Expand Down Expand Up @@ -213,10 +213,10 @@ describe('App - Debug Page', () => {
}

if (obj.operationName === 'RelevantRunSpecsDataSource_Specs' && obj.result.data) {
//NOTE Figure out how to manually trigger polling instead of adjusting polling intervals
// NOTE Figure out how to manually trigger polling instead of adjusting polling intervals
obj.result.data.pollingIntervals = {
__typename: 'CloudPollingIntervals',
runByNumber: 1, //Increase polling interval for debugging test
runByNumber: 1.5, //Increase polling interval for debugging test
}

if (run.totalInstanceCount === run.completedInstanceCount) {
Expand All @@ -239,15 +239,14 @@ describe('App - Debug Page', () => {
cy.findByTestId('sidebar-link-debug-page').click()
cy.findByTestId('debug-container').should('be.visible')

cy.findByTestId('header-top').contains('chore: testing cypress')

cy.findByTestId('debug-testing-progress').as('progress')
cy.findByTestId('header-top').contains('chore: testing cypress').should('be.visible')

cy.get('@progress').contains('Testing in progress...')
cy.get('[data-cy="debug-badge"]').contains('0').should('be.visible')
cy.get('@progress').contains('1 of 5 specs completed')
cy.get('@progress').contains('2 of 5 specs completed')
cy.get('@progress').contains('3 of 5 specs completed')

cy.get('[data-cy=debug-testing-progress]').contains('Testing in progress...')
cy.findByTestId('debug-testing-progress').contains('1 of 3 specs completed')
cy.findByTestId('debug-testing-progress').contains('2 of 3 specs completed')
cy.findByTestId('debug-testing-progress').contains('3 of 3 specs completed')
cy.get('[data-cy="debug-badge"]').contains('1').should('be.visible')

cy.findByTestId('spec-contents').within(() => {
Expand Down

4 comments on commit c3cbe6f

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c3cbe6f Feb 22, 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.6/linux-arm64/develop-c3cbe6fc141fe94ce6c400fe3c93e7637a714dac/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c3cbe6f Feb 22, 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.6/linux-x64/develop-c3cbe6fc141fe94ce6c400fe3c93e7637a714dac/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c3cbe6f Feb 22, 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.6/darwin-x64/develop-c3cbe6fc141fe94ce6c400fe3c93e7637a714dac/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on c3cbe6f Feb 22, 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.6/win32-x64/develop-c3cbe6fc141fe94ce6c400fe3c93e7637a714dac/cypress.tgz

Please sign in to comment.