Skip to content

Commit c40a120

Browse files
author
Rachel
authoredAug 15, 2022
chore: skip or fix flaky tests (#23167)
1 parent 0aa89fa commit c40a120

31 files changed

+292
-169
lines changed
 

‎.percy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ snapshot:
44
- 1280
55
min-height: 1024
66
discovery:
7-
network-idle-timeout: 1000
7+
network-idle-timeout: 750

‎circle.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ mainBuildFilters: &mainBuildFilters
2727
branches:
2828
only:
2929
- develop
30+
- reapply-state-refactor
31+
- fix-or-skip-flaky-tests
3032

3133
# usually we don't build Mac app - it takes a long time
3234
# but sometimes we want to really confirm we are doing the right thing
@@ -63,7 +65,8 @@ windowsWorkflowFilters: &windows-workflow-filters
6365
or:
6466
- equal: [ develop, << pipeline.git.branch >> ]
6567
- equal: [ linux-arm64, << pipeline.git.branch >> ]
66-
- equal: [ 'tbiethman/22272-globbing-working-dir', << pipeline.git.branch >> ]
68+
- equal: [ 'fix-or-skip-flaky-tests', << pipeline.git.branch >> ]
69+
- equal: [ 'lmiller/windows-vite-fix', << pipeline.git.branch >> ]
6770
- matches:
6871
pattern: "-release$"
6972
value: << pipeline.git.branch >>

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"@graphql-tools/wrap": "8.1.1",
9191
"@octokit/auth-app": "3.6.1",
9292
"@octokit/core": "3.6.0",
93-
"@percy/cli": "1.1.0",
93+
"@percy/cli": "1.2.0",
9494
"@percy/cypress": "^3.1.1",
9595
"@semantic-release/changelog": "5.0.1",
9696
"@semantic-release/git": "9.0.0",

‎packages/app/.percy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ snapshot:
44
- 1280
55
min-height: 1024
66
discovery:
7-
network-idle-timeout: 1000
7+
network-idle-timeout: 750

‎packages/app/cypress/e2e/cypress-in-cypress-component.cy.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ describe('Cypress In Cypress CT', { viewportWidth: 1500, defaultCommandTimeout:
7878
cy.get('[data-model-state="passed"]').should('contain', 'renders the test component')
7979
})
8080

81-
it('redirects to the specs list with error if a spec is not found', () => {
81+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23159
82+
it.skip('redirects to the specs list with error if a spec is not found', () => {
8283
cy.visitApp()
8384
const { title, intro, explainer } = defaultMessages.specPage.noSpecError
8485
const badFilePath = 'src/DoesNotExist.spec.js'

‎packages/app/cypress/e2e/cypress-in-cypress-run-mode.cy.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ describe('Cypress In Cypress - run mode', { viewportWidth: 1200 }, () => {
3333
cy.percySnapshot()
3434
})
3535

36-
it('component testing run mode spec runner header is correct', () => {
36+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23306
37+
it.skip('component testing run mode spec runner header is correct', () => {
3738
cy.scaffoldProject('cypress-in-cypress')
3839
cy.findBrowsers()
3940
cy.openProject('cypress-in-cypress')

‎packages/app/cypress/e2e/specs_list_e2e.cy.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ describe('App: Spec List (E2E)', () => {
237237
cy.get('button').contains('23 Matches')
238238
})
239239

240-
it('saves the filter when navigating to a spec and back', function () {
240+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23305
241+
it.skip('saves the filter when navigating to a spec and back', function () {
241242
const targetSpecFile = 'accounts_list.spec.js'
242243

243244
clearSearchAndType(targetSpecFile)

‎packages/app/cypress/e2e/support/execute-spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const waitForSpecToFinish = (expectedResults) => {
2929
cy.get('.failed > .num').should('contain', '--')
3030

3131
// Then ensure the tests are running
32-
cy.contains('Your tests are loading...').should('not.exist')
32+
cy.contains('Your tests are loading...', { timeout: 10000 }).should('not.exist')
3333

3434
// Then ensure the tests have finished
3535
cy.get('[aria-label="Rerun all tests"]', { timeout: 30000 })

‎packages/data-context/test/unit/sources/GitDataSource.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ describe('GitDataSource', () => {
4343
sinon.restore()
4444
})
4545

46-
it(`gets correct status for files on ${os.platform()}`, async () => {
46+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23317
47+
it.skip(`gets correct status for files on ${os.platform()}`, async () => {
4748
const onBranchChange = sinon.stub()
4849
const onGitInfoChange = sinon.stub()
4950
const onError = sinon.stub()

‎packages/driver/cypress/e2e/commands/actions/select.cy.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ describe('src/cy/commands/actions/select', () => {
146146
cy.get('#select-maps').select('de_train')
147147
})
148148

149-
it('can forcibly click even when being covered by another element', (done) => {
149+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23156
150+
it.skip('can forcibly click even when being covered by another element', (done) => {
150151
const select = $('<select><option>foo</option></select>').attr('id', 'select-covered-in-span').prependTo(cy.$$('body'))
151152

152153
$('<span>span on select</span>').css({ position: 'absolute', left: select.offset().left, top: select.offset().top, padding: 5, display: 'inline-block', backgroundColor: 'yellow' }).prependTo(cy.$$('body'))
@@ -173,7 +174,8 @@ describe('src/cy/commands/actions/select', () => {
173174
cy.get('#select-covered-in-span').select('foobar', { timeout: 1000, interval: 60 })
174175
})
175176

176-
it('can forcibly click even when element is invisible', (done) => {
177+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23157
178+
it.skip('can forcibly click even when element is invisible', (done) => {
177179
const select = cy.$$('#select-maps').hide()
178180

179181
select.click(() => {

3 commit comments

Comments
 (3)

cypress-bot[bot] commented on Aug 15, 2022

@cypress-bot[bot]
Contributor

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/10.5.0/linux-x64/develop-c40a120aa7e3a0c52016c89ab316ce1e5eb8fa69/cypress.tgz

cypress-bot[bot] commented on Aug 15, 2022

@cypress-bot[bot]
Contributor

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.5.0/darwin-arm64/develop-c40a120aa7e3a0c52016c89ab316ce1e5eb8fa69/cypress.tgz

cypress-bot[bot] commented on Aug 15, 2022

@cypress-bot[bot]
Contributor

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/10.5.0/darwin-x64/develop-c40a120aa7e3a0c52016c89ab316ce1e5eb8fa69/cypress.tgz
Please sign in to comment.