Skip to content

Commit

Permalink
try fixing some flake
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Nov 8, 2022
1 parent 75d25ca commit 5cca59a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts
Expand Up @@ -25,7 +25,7 @@ for (const { projectName, test } of PROJECTS) {
cy.startAppServer('component')
cy.visitApp()
cy.contains(`${test}`).click()
cy.waitForSpecToFinish({}, 30000)
cy.waitForSpecToFinish(undefined)
cy.get('.collapsible-header-inner:first').click().get('.command.command-name-mount > .command-wrapper').click().then(() => {
cy.get('iframe.aut-iframe').its('0.contentDocument.body').then(cy.wrap).within(() => {
cy.get('[data-cy-root]').children().should('have.length.at.least', 1)
Expand All @@ -36,7 +36,7 @@ for (const { projectName, test } of PROJECTS) {
cy.startAppServer('component')
cy.visitApp()
cy.contains(`${test}`).click()
cy.waitForSpecToFinish({}, 30000)
cy.waitForSpecToFinish(undefined)
cy.get('.command.command-name-mount > .command-wrapper').click().then(() => {
if (`${projectName}` === 'angular-14') {
cy.get('iframe.aut-iframe').its('0.contentDocument.body').children().should('have.length.at.least', 2)
Expand Down
17 changes: 9 additions & 8 deletions packages/app/cypress/e2e/support/execute-spec.ts
@@ -1,7 +1,6 @@
import { shouldHaveTestResults } from '../runner/support/spec-loader'

export interface ExpectedResults
{
export interface ExpectedResults {
passCount?: number
failCount?: number
pendingCount?: number
Expand All @@ -23,13 +22,10 @@ declare global {
}
}

// Here we export the function with no intention to import it
// This only tells the typescript type checker that this definitely is a module
// This way, we are allowed to use the global namespace declaration
export const waitForSpecToFinish = (expectedResults, timeout?: number) => {
const waitForSpecToFinish = (expectedResults, timeout?: number) => {
// First ensure the test is loaded
cy.get('.passed > .num').should('contain', '--')
cy.get('.failed > .num').should('contain', '--')
cy.get('.passed > .num').should('exist')
cy.get('.failed > .num').should('exist')

// Then ensure the tests are running
cy.contains('Your tests are loading...', { timeout: timeout || 20000 }).should('not.exist')
Expand All @@ -43,3 +39,8 @@ export const waitForSpecToFinish = (expectedResults, timeout?: number) => {
}

Cypress.Commands.add('waitForSpecToFinish', waitForSpecToFinish)

// Here we export an empty object to tell the
// typescript type checker that this definitely is a module.
// This way, we are allowed to use the global namespace declaration
export {}

5 comments on commit 5cca59a

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cca59a Nov 8, 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 linux 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/11.0.0/linux-arm64/marktnoonan/windows-test-updates-5cca59a2497eeefaaa61bee9491e5297ade0066a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cca59a Nov 8, 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 linux x64 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/11.0.0/linux-x64/marktnoonan/windows-test-updates-5cca59a2497eeefaaa61bee9491e5297ade0066a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cca59a Nov 8, 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/11.0.0/darwin-arm64/marktnoonan/windows-test-updates-5cca59a2497eeefaaa61bee9491e5297ade0066a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cca59a Nov 8, 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 x64 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/11.0.0/darwin-x64/marktnoonan/windows-test-updates-5cca59a2497eeefaaa61bee9491e5297ade0066a/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 5cca59a Nov 8, 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 win32 x64 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/11.0.0/win32-x64/marktnoonan/windows-test-updates-5cca59a2497eeefaaa61bee9491e5297ade0066a/cypress.tgz

Please sign in to comment.