Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: skip or fix flaky tests II #23386

Merged
merged 136 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
8fe4e56
fix leftover percy network-idle-timeout
rachelruderman Aug 16, 2022
3cef268
Skip another instance of 23153
rachelruderman Aug 16, 2022
40c9272
fix 23147
rachelruderman Aug 16, 2022
a4223a4
Revert fix 23147
rachelruderman Aug 16, 2022
d2dc085
try percy upgrade again
rachelruderman Aug 16, 2022
856da4f
Update yarn.lock
rachelruderman Aug 16, 2022
4238772
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 17, 2022
41e2003
skip 23404
rachelruderman Aug 17, 2022
eee1020
Merge branch 'skip-or-fix-flaky-tests-2' of github.com:cypress-io/cyp…
rachelruderman Aug 17, 2022
f387a92
bring in emilys override version change for percy ui
rachelruderman Aug 17, 2022
82a7fe1
skip 23406
rachelruderman Aug 17, 2022
c5cd02f
skip 23407
rachelruderman Aug 17, 2022
7d96065
downgrade percy to 1.2.0
rachelruderman Aug 17, 2022
2351ad1
fix percy diff
rachelruderman Aug 17, 2022
e4c4e2e
fix percy diff
rachelruderman Aug 17, 2022
46adc51
update comment
rachelruderman Aug 17, 2022
e354f62
restore lock file
rachelruderman Aug 17, 2022
6d6b49a
Update yarn.lock
rachelruderman Aug 17, 2022
0918da8
Update yarn.lock
rachelruderman Aug 17, 2022
51ffc26
percy fixes
rachelruderman Aug 17, 2022
6f6e3fb
possible fix
rachelruderman Aug 17, 2022
204afeb
fix verison flake??
rachelruderman Aug 17, 2022
94284e4
Revert "fix percy diff"
rachelruderman Aug 17, 2022
24f4ea9
Revert "Revert "fix percy diff""
rachelruderman Aug 17, 2022
7fa7fa7
Remove version assertion
rachelruderman Aug 17, 2022
6896a7c
Trigger Build
rachelruderman Aug 17, 2022
fd96269
ignore spec duration in percy snapshots
rachelruderman Aug 17, 2022
a0d21bf
use .each to preserve order of execution
rachelruderman Aug 17, 2022
a3d9013
add comment
rachelruderman Aug 17, 2022
7fdf87e
fix comment
rachelruderman Aug 17, 2022
bfed31e
try new logic for header wait
rachelruderman Aug 17, 2022
9c0b402
Revert "try new logic for header wait"
rachelruderman Aug 17, 2022
2b8efcc
add timeout to choose a browser
rachelruderman Aug 18, 2022
4f13f09
Trigger Build
rachelruderman Aug 18, 2022
9e7f1ce
try without promise.all; revert timeout to choose a browser tests
rachelruderman Aug 18, 2022
aeb4112
ignore spec-duration in percy in runner
rachelruderman Aug 18, 2022
a190a5f
clean up .thens
rachelruderman Aug 18, 2022
6d19c85
clean up diffs
rachelruderman Aug 18, 2022
6cfccb1
move around .thens
rachelruderman Aug 18, 2022
d0b1401
wait for tooltip to take snapshot, skip flakers
rachelruderman Aug 18, 2022
5e60864
try hiding spec duration
rachelruderman Aug 18, 2022
def6d0e
Revert: try hiding spec duration
rachelruderman Aug 18, 2022
c479638
Bring back duration mock
rachelruderman Aug 18, 2022
d1cfc88
Add another duration mock
rachelruderman Aug 18, 2022
fd02bca
try cy.contains with tooltip, comment out removeGlobalStyles
rachelruderman Aug 18, 2022
b0ee54f
skip 23417
rachelruderman Aug 18, 2022
d7bc653
skip choose a browser failures
rachelruderman Aug 18, 2022
595d642
skip 23419
rachelruderman Aug 18, 2022
a7195e7
skip 23414
rachelruderman Aug 18, 2022
bd9e1bc
bring back // removeGlobalStyles()
rachelruderman Aug 18, 2022
9f7d6f0
skip 23422
rachelruderman Aug 18, 2022
5641597
skip 23423
rachelruderman Aug 18, 2022
71846a0
skip 23424
rachelruderman Aug 18, 2022
756f474
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 18, 2022
807a03f
set version to empty string to make percy happy
rachelruderman Aug 18, 2022
4877228
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 18, 2022
46e4780
Merge branch 'skip-or-fix-flaky-tests-2' of github.com:cypress-io/cyp…
rachelruderman Aug 18, 2022
a85bb38
Merge branch 'skip-or-fix-flaky-tests-2' of github.com:cypress-io/cyp…
rachelruderman Aug 18, 2022
64a17ec
Remove duration mock
rachelruderman Aug 18, 2022
cfcf474
Do not display top-nav-cypress-version-current-link, skip 23433?
rachelruderman Aug 18, 2022
ec74da0
skip 23434, clean up diffs
rachelruderman Aug 18, 2022
b5870a5
clean up diffs, skip percy flake
rachelruderman Aug 18, 2022
ad0d5aa
skip 23434
rachelruderman Aug 18, 2022
966c7c6
skip 23437
rachelruderman Aug 18, 2022
4af06ee
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 18, 2022
a017c16
fix 23156
rachelruderman Aug 18, 2022
7c8dba6
fix 23250 and similar
rachelruderman Aug 18, 2022
e9b22f1
fix 23157
rachelruderman Aug 18, 2022
d6ac55d
skip more percies
rachelruderman Aug 18, 2022
05d3586
skip 23443
rachelruderman Aug 18, 2022
a300991
skip more tooltip snapshots
rachelruderman Aug 18, 2022
9e26862
Update net_stubbing.cy.ts
rachelruderman Aug 18, 2022
736d699
Update cookies.cy.js
rachelruderman Aug 18, 2022
12baa01
Update e2e_cookies.cy.js
rachelruderman Aug 18, 2022
800f5e8
add missing github issue
rachelruderman Aug 18, 2022
b865b67
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 18, 2022
3cf92e1
Update circle.yml
rachelruderman Aug 18, 2022
ef354de
Merge branch 'skip-or-fix-flaky-tests-2' of github.com:cypress-io/cyp…
rachelruderman Aug 18, 2022
06bdf25
Skip all of network stubbing
rachelruderman Aug 18, 2022
c18f36e
Skip 23158
rachelruderman Aug 18, 2022
eed9bb8
Skip 23448
rachelruderman Aug 18, 2022
57a652a
remove unnecessary async, add skip for 23444
rachelruderman Aug 19, 2022
e60d2cd
more skips for 23444
rachelruderman Aug 19, 2022
f11fedc
skip 23451
rachelruderman Aug 19, 2022
4c97082
More skips 23436
rachelruderman Aug 19, 2022
37b82a9
More skips 23444
rachelruderman Aug 19, 2022
8b7a0b9
skip 23455
rachelruderman Aug 19, 2022
ca685e0
more skips 23444
rachelruderman Aug 19, 2022
1cf1790
skip 23457
rachelruderman Aug 19, 2022
ba68500
more skips 23444
rachelruderman Aug 19, 2022
11b245c
mroe skip 23455
rachelruderman Aug 19, 2022
3d8bb3f
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 19, 2022
c670876
Trigger Build
rachelruderman Aug 19, 2022
8f0e296
skip set cookie 23444
rachelruderman Aug 19, 2022
414d3ff
skip 21300
rachelruderman Aug 19, 2022
048b31d
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 19, 2022
0c9c55d
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 19, 2022
bb0fe59
push latest
rachelruderman Aug 19, 2022
a383dc5
skip 23417
rachelruderman Aug 19, 2022
4233ab8
merge develop
rachelruderman Aug 19, 2022
ea10e33
Trigger Build
rachelruderman Aug 19, 2022
ffe57ac
potential fix for 23308
rachelruderman Aug 19, 2022
85ec8a4
skip 23472
rachelruderman Aug 19, 2022
f8fb84a
Merge branch 'develop' into skip-or-fix-flaky-tests-2
rachelruderman Aug 19, 2022
114bfe4
skip snapshot
rachelruderman Aug 19, 2022
9160efc
skip 23474
rachelruderman Aug 19, 2022
cd39b03
Trigger Build
rachelruderman Aug 20, 2022
0bf2225
Trigger Build
rachelruderman Aug 20, 2022
1b33a03
Trigger Build
rachelruderman Aug 20, 2022
11625b0
Trigger Build
rachelruderman Aug 20, 2022
bc7e7c0
skip more 23245
rachelruderman Aug 20, 2022
f58a842
Trigger Build
rachelruderman Aug 20, 2022
b17c0da
Trigger Build
rachelruderman Aug 20, 2022
957dc94
Trigger Build
rachelruderman Aug 20, 2022
e96a13c
Trigger Build
rachelruderman Aug 20, 2022
590314e
Trigger Build
rachelruderman Aug 20, 2022
d09179b
Trigger Build
rachelruderman Aug 21, 2022
b981a22
Trigger Build
rachelruderman Aug 21, 2022
2e0a6db
skip 23480,23481
rachelruderman Aug 21, 2022
e3be259
skip 23307
rachelruderman Aug 21, 2022
24dddf8
Trigger Build
rachelruderman Aug 21, 2022
7afc063
addtl skip 23481
rachelruderman Aug 21, 2022
c0eba3a
skip 23484
rachelruderman Aug 21, 2022
00ae9b1
try cy.origin stability fix on nav commands issue
rachelruderman Aug 21, 2022
2987c5d
Revert: try cy.origin stability fix on nav commands issue
rachelruderman Aug 21, 2022
986ca2e
skip more 23452
rachelruderman Aug 22, 2022
046e3fa
Trigger Build
rachelruderman Aug 22, 2022
138dfdb
Trigger Build
rachelruderman Aug 22, 2022
0acf018
Trigger Build
rachelruderman Aug 22, 2022
840f9bb
Trigger Build
rachelruderman Aug 22, 2022
0164ea7
Trigger Build
rachelruderman Aug 22, 2022
701abf6
Trigger Build
rachelruderman Aug 22, 2022
b11abb3
Trigger Build
rachelruderman Aug 22, 2022
d47536d
Trigger Build
rachelruderman Aug 22, 2022
5aaee72
skip 23493
rachelruderman Aug 22, 2022
0341a80
Trigger Build
rachelruderman Aug 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ macWorkflowFilters: &darwin-workflow-filters
or:
- equal: [ develop, << pipeline.git.branch >> ]
- equal: [ 'tbiethman/22272-globbing-working-dir', << pipeline.git.branch >> ]
- equal: [ 'skip-or-fix-flaky-tests-2', << pipeline.git.branch >> ]
- matches:
pattern: "-release$"
value: << pipeline.git.branch >>
Expand All @@ -45,6 +46,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters
or:
- equal: [ develop, << pipeline.git.branch >> ]
- equal: [ "lmiller/experimental-single-tab-component-testing", << pipeline.git.branch >> ]
- equal: [ 'skip-or-fix-flaky-tests-2', << pipeline.git.branch >> ]
- matches:
pattern: "-release$"
value: << pipeline.git.branch >>
Expand All @@ -65,6 +67,7 @@ windowsWorkflowFilters: &windows-workflow-filters
- equal: [ develop, << pipeline.git.branch >> ]
- equal: [ linux-arm64, << pipeline.git.branch >> ]
- equal: [ 'marktnoonan/windows-path-fix', << pipeline.git.branch >> ]
- equal: [ 'skip-or-fix-flaky-tests-2', << pipeline.git.branch >> ]
- matches:
pattern: "-release$"
value: << pipeline.git.branch >>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('@cypress/schematic:e2e ng-generate', () => {
appTree = await schematicRunner.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree).toPromise()
})

it('should create cypress spec file', async () => {
it('should create cypress spec file', () => {
return schematicRunner.runSchematicAsync('e2e', { name: 'foo', project: 'sandbox' }, appTree).toPromise().then((tree) => {
Comment on lines -33 to 34
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was using .toPromise with async, and not awaiting anything

const files = tree.files

Expand Down
2 changes: 1 addition & 1 deletion npm/vite-dev-server/.percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ snapshot:
- 1280
min-height: 1024
discovery:
network-idle-timeout: 1000
network-idle-timeout: 750
2 changes: 1 addition & 1 deletion npm/webpack-dev-server/.percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ snapshot:
- 1280
min-height: 1024
discovery:
network-idle-timeout: 1000
network-idle-timeout: 750
3 changes: 2 additions & 1 deletion npm/webpack-dev-server/cypress/e2e/angular.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ for (const project of WEBPACK_REACT) {
cy.get('.passed > .num').should('contain', 1)
})

it('should detect new spec', () => {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23455
it.skip('should detect new spec', () => {
cy.visitApp()

cy.withCtx(async (ctx) => {
Expand Down
6 changes: 4 additions & 2 deletions npm/webpack-dev-server/cypress/e2e/next.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ for (const project of WEBPACK_REACT) {
cy.get('.passed > .num').should('contain', 1)
})

it('should detect new spec', () => {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23417
it.skip('should detect new spec', () => {
cy.visitApp()

cy.withCtx(async (ctx) => {
Expand All @@ -73,7 +74,8 @@ for (const project of WEBPACK_REACT) {
cy.get('.passed > .num').should('contain', 1)
})

it('should allow import of global styles in support file', () => {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23417
it.skip('should allow import of global styles in support file', () => {
cy.visitApp()
cy.contains('styles.cy.js').click()
cy.waitForSpecToFinish()
Expand Down
3 changes: 2 additions & 1 deletion npm/webpack-dev-server/cypress/e2e/nuxt.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ for (const project of PROJECTS) {
cy.get('.passed > .num').should('contain', 1)
})

it('should detect new spec', () => {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23455
it.skip('should detect new spec', () => {
cy.visitApp()

cy.withCtx(async (ctx) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/app/cypress/e2e/cypress-in-cypress-e2e.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('Cypress In Cypress E2E', { viewportWidth: 1500, defaultCommandTimeout:
.its('href')
.should('eq', 'http://localhost:4455/__/#/specs')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely stuff!


// should clear after reload
cy.reload()
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('Cypress In Cypress E2E', { viewportWidth: 1500, defaultCommandTimeout:
// We could consider removing this after percy is
// up and running for e2e tests.

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('should show visit failure blank page', () => {
Expand All @@ -181,7 +181,7 @@ describe('Cypress In Cypress E2E', { viewportWidth: 1500, defaultCommandTimeout:
.click()

cy.get('[data-model-state="failed"]').should('contain', 'renders the blank page')
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('set the correct viewport values from CLI', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/app/cypress/e2e/cypress-in-cypress-run-mode.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Cypress In Cypress - run mode', { viewportWidth: 1200 }, () => {
cy.contains('Chrome 1').click()
cy.contains('Firefox').should('not.exist')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23306
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('Cypress In Cypress - run mode', { viewportWidth: 1200 }, () => {
cy.contains('Chrome 1').click()
cy.contains('Firefox').should('not.exist')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('hides reporter when NO_COMMAND_LOG is set in run mode', () => {
Expand Down
20 changes: 12 additions & 8 deletions packages/app/cypress/e2e/cypress-in-cypress.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100
expect(ctx.actions.project.launchProject).to.have.been.called
})

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it(`handles automation missing in ${testingType}`, () => {
Expand Down Expand Up @@ -74,11 +74,11 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100

cy.contains('h3', 'The Cypress extension is missing')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.get('[data-cy="select-browser"]').click()

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.withCtx((ctx, { sinon }) => {
sinon.stub(ctx.actions.project, 'launchProject').resolves()
Expand All @@ -92,7 +92,8 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100
})
})

it(`scales the AUT correctly in ${testingType}`, () => {
// TODO: fix flaky test https://github.com/cypress-io/cypress/issues/23307
it.skip(`scales the AUT correctly in ${testingType}`, () => {
const assertNoScaleShown = () => {
// check that no message about scale % is shown,
// meaning the AUT is at 100% scale
Expand All @@ -117,7 +118,7 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100

// validate that the width we set in `withCtx` above is the starting point
cy.get(`[data-cy="reporter-panel"]`).invoke('outerWidth').should('eq', 800)
cy.percySnapshot('initial state')
// cy.percySnapshot('initial state') // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.contains('[aria-controls=reporter-inline-specs-list]', 'Specs')
.click({ force: true })
Expand Down Expand Up @@ -152,7 +153,10 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100
assertNoScaleShown()
}

cy.percySnapshot(`panel 2 at ${ position } px`)
/*
TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
cy.percySnapshot(`panel 2 at ${ position } px`)
*/
})
})

Expand All @@ -171,11 +175,11 @@ describe('Cypress in Cypress', { viewportWidth: 1500, defaultCommandTimeout: 100
cy.contains('Expand Specs List')

assertNoScaleShown()
cy.percySnapshot('tall viewport')
// cy.percySnapshot('tall viewport') // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.viewport(1500, 400)
cy.contains(testingTypeExpectedScales[`${ testingType }ShortViewport`]).should('be.visible')
cy.percySnapshot('short viewport')
// cy.percySnapshot('short viewport') // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

cy.get('[data-cy="select-browser"]').as('selectBrowser')
Expand Down
13 changes: 7 additions & 6 deletions packages/app/cypress/e2e/runner/sessions.ui.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('runner/cypress sessions.ui.spec', {
validateSetupSessionGroup()
})

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.get('.command-name-session').eq(0).get('.command-expander').first().click()
cy.get('.command').should('have.length', 2)
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('runner/cypress sessions.ui.spec', {
.contains('runValidation')
})

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.get('.command-name-session').eq(0).get('.command-expander').first().click()

Expand Down Expand Up @@ -128,7 +128,7 @@ describe('runner/cypress sessions.ui.spec', {

cy.contains('CypressError')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

describe('restores saved session', () => {
Expand Down Expand Up @@ -246,7 +246,8 @@ describe('runner/cypress sessions.ui.spec', {
.find('.command-alias')
.contains('runValidation')
})
.percySnapshot()

// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.get('.runnable-err').should('have.length', 1)

Expand Down Expand Up @@ -309,7 +310,7 @@ describe('runner/cypress sessions.ui.spec', {
.find('.command-alias')
.contains('runValidation')
})
.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.get('.runnable-err').should('have.length', 2)
})
Expand All @@ -323,7 +324,7 @@ describe('runner/cypress sessions.ui.spec', {
})

validateSessionsInstrumentPanel(['user1', 'user2'])
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})
})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Takes percy snapshot with navigation/AUT hidden and run duration mocked
// Takes percy snapshot with navigation/AUT/reporter hidden
export const snapshotReporter = () => {
cy.percySnapshot({
width: 450,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/cypress/e2e/runs.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ describe('App: Runs', { viewportWidth: 1200 }, () => {
moveToRunsPage()

cy.contains('h2', 'Cannot connect to the Cypress Dashboard')
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.remoteGraphQLIntercept((obj) => {
if (obj.operationName === 'Runs_currentProject_cloudProject_cloudProjectBySlug') {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/cypress/e2e/settings.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ describe('App: Settings without cloud', () => {
cy.contains(`channel: 'stable',`)
cy.contains(`displayName: 'Chrome',`)

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})
})
})
15 changes: 8 additions & 7 deletions packages/app/cypress/e2e/sidebar_navigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {

it('expands the left nav bar by default', () => {
cy.findByTestId('sidebar').should('have.css', 'width', '248px') // assert width to ensure transition has finished
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('highlights indicator on hover showing you can click to expand', () => {
Expand All @@ -87,14 +87,15 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {
cy.findByTestId('toggle-sidebar').realHover()
cy.get(navIndicatorSelector).should('be.visible')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('closes the left nav bar when clicking the expand button (if expanded)', () => {
cy.findByTestId('sidebar').contains('todos').should('be.visible')
cy.findByTestId('toggle-sidebar').click()
cy.findByTestId('sidebar').contains('todos').should('not.be.visible')
cy.percySnapshot()

// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('closes the left nav bar when clicking the expand button and persist the state if browser is refreshed', () => {
Expand All @@ -107,7 +108,7 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {

cy.findByTestId('sidebar').contains('todos').should('not.be.visible')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
})

it('has menu item that shows the keyboard shortcuts modal (unexpanded state)', () => {
Expand All @@ -123,7 +124,7 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {
cy.get('li span').contains('s')
cy.get('li span').contains('f')

cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
cy.get('[aria-label="Close"]').click()
cy.findAllByTestId('keyboard-modal').should('not.exist')
})
Expand All @@ -134,7 +135,7 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {

cy.findByTestId('sidebar-header').trigger('mouseenter')
cy.contains('.v-popper--some-open--tooltip', 'todos')
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
cy.findByTestId('sidebar-header').trigger('mouseout')

cy.findByTestId('sidebar-link-runs-page').trigger('mouseenter')
Expand Down Expand Up @@ -243,7 +244,7 @@ describe('Sidebar Navigation', { viewportWidth: 1280 }, () => {
cy.findAllByTestId('spec-item').first().click()
cy.location('hash').should('contain', '#/specs/runner')
cy.contains('.router-link-exact-active', 'Specs').should('not.exist')
cy.percySnapshot()
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435

cy.findByTestId('sidebar-link-specs-page').click()
cy.location('hash').should('equal', '#/specs')
Expand Down
Loading