Skip to content

Commit 4a47081

Browse files
authored
test: clean up skipped flaky tests (#25671)
1 parent e8ab1b5 commit 4a47081

File tree

7 files changed

+14
-16
lines changed

7 files changed

+14
-16
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ describe('GitDataSource', () => {
4646
sinon.restore()
4747
})
4848

49-
// TODO: Very flaky on CI, even with a bunch of retries it still fails more often than nought
50-
// see: https://github.com/cypress-io/cypress/issues/25824
49+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23317
5150
it.skip(`gets correct status for files on ${os.platform()}`, async function () {
52-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23317
53-
this.retries(15)
54-
5551
const onBranchChange = sinon.stub()
5652
const onGitInfoChange = sinon.stub()
5753
const onError = sinon.stub()

packages/driver/cypress/e2e/cypress/proxy-logging.cy.ts

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ describe('Proxy Logging', () => {
163163
.visit('/fixtures/empty.html')
164164
})
165165

166-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23420
167166
it('intercept log has consoleProps with intercept info', (done) => {
168167
cy.intercept('/some-url', 'stubbed response').as('alias')
169168
.then(() => {

packages/driver/cypress/e2e/e2e/origin/snapshots.cy.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('cy.origin - snapshots', { browser: '!webkit' }, () => {
7474
cy.get('a[data-cy="xhr-fetch-requests-onload"]').click()
7575
})
7676

77-
// TODO: the xhr event is showing up twice in the log, which is wrong and causing flake. skipping until: https://github.com/cypress-io/cypress/issues/23840 is addressed.
77+
// TODO: fix failing test: https://github.com/cypress-io/cypress/issues/23840
7878
it.skip('verifies XHR requests made while a secondary origin is active eventually update with snapshots of the secondary origin', () => {
7979
cy.origin('http://www.foobar.com:3500', () => {
8080
// need to set isInteractive in the spec bridge in order to take xhr snapshots in run mode, similar to how isInteractive is set within support/defaults.js
@@ -100,7 +100,7 @@ describe('cy.origin - snapshots', { browser: '!webkit' }, () => {
100100
})
101101
})
102102

103-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23437
103+
// TODO: fix failing test: https://github.com/cypress-io/cypress/issues/23840
104104
it.skip('verifies fetch requests made while a secondary origin is active eventually update with snapshots of the secondary origin', () => {
105105
cy.origin('http://www.foobar.com:3500', () => {
106106
// need to set isInteractive in the spec bridge in order to take xhr snapshots in run mode, similar to how isInteractive is set within support/defaults.js

packages/driver/cypress/e2e/e2e/origin/validation.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ describe('cy.origin', { browser: '!webkit' }, () => {
211211
})
212212
})
213213

214-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23451
214+
// TODO: fix failing test https://github.com/cypress-io/cypress/issues/23451
215215
it.skip('uses cy.origin twice', () => {
216216
cy.visit('/fixtures/auth/index.html')
217217
cy.get('[data-cy="login-idp"]').click()

packages/launchpad/cypress/e2e/project-setup.cy.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ describe('Launchpad: Setup Project', () => {
556556
})
557557
})
558558

559-
describe('Command for package managers', () => {
559+
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23153
560+
describe('Command for package managers', { retries: 15 }, () => {
560561
it('makes the right command for yarn', () => {
561562
scaffoldAndOpenProject('pristine-yarn')
562563

@@ -578,7 +579,7 @@ describe('Launchpad: Setup Project', () => {
578579
cy.get('[data-testid="select-framework"]').click()
579580
cy.findByText('Create React App').click()
580581
cy.findByText('Next step').click()
581-
cy.findByTestId('terminal-prompt-input').should('have.value', 'pnpm install -D react-scripts react-dom react')
582+
cy.findByDisplayValue('pnpm install -D react-scripts react-dom react')
582583
})
583584

584585
it('makes the right command for npm', () => {
@@ -590,7 +591,7 @@ describe('Launchpad: Setup Project', () => {
590591
cy.get('[data-testid="select-framework"]').click()
591592
cy.findByText('Create React App').click()
592593
cy.findByText('Next step').click()
593-
cy.findByTestId('terminal-prompt-input').should('have.value', 'npm install -D react-scripts react-dom react')
594+
cy.findByDisplayValue('npm install -D react-scripts react-dom react')
594595
})
595596
})
596597

@@ -655,7 +656,7 @@ describe('Launchpad: Setup Project', () => {
655656
verifyScaffoldedFiles('e2e')
656657
})
657658

658-
// TODO: fix flaky tests https://github.com/cypress-io/cypress/issues/23418
659+
// TODO: fix failing test https://github.com/cypress-io/cypress/issues/23418
659660
it.skip('takes the user to first step of ct setup when switching from app', () => {
660661
scaffoldAndOpenProject('pristine-with-e2e-testing')
661662
cy.visitLaunchpad()

packages/server/test/integration/cypress_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ describe('lib/cypress', () => {
17911791
})
17921792
})
17931793

1794-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23149
1794+
// TODO: fix failing test https://github.com/cypress-io/cypress/issues/23149
17951795
it.skip('passes filtered options to Project#open and sets cli config', async function () {
17961796
const open = sinon.stub(ServerE2E.prototype, 'open').resolves([])
17971797

system-tests/test/record_spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
const _ = require('lodash')
23
const path = require('path')
34
const Promise = require('bluebird')
@@ -342,7 +343,7 @@ describe('e2e record', () => {
342343

343344
setupStubbedServer(routes)
344345

345-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23152
346+
// TODO: fix failing test https://github.com/cypress-io/cypress/issues/23152
346347
it.skip('passes in parallel with group', function () {
347348
this.retries(3)
348349

@@ -366,6 +367,7 @@ describe('e2e record', () => {
366367

367368
// stagger the 2nd run
368369
// starting up a bit
370+
// NOTE: this is probably why this test flakes - despite waiting 3s, sometimes the second instance finishes first
369371
Promise
370372
.delay(3000)
371373
.then(() => {
@@ -392,7 +394,7 @@ describe('e2e record', () => {
392394
context('metadata', () => {
393395
setupStubbedServer(createRoutes())
394396

395-
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23151
397+
// TODO: fix failing test https://github.com/cypress-io/cypress/issues/23151
396398
it.skip('sends Studio usage metadata', function () {
397399
return systemTests.exec(this, {
398400
key: 'f858a2bc-b469-4e48-be67-0876339ee7e1',

0 commit comments

Comments
 (0)