Skip to content

Commit

Permalink
chore: fix chrome system tests to work with chrome 114. updates mostl…
Browse files Browse the repository at this point in the history
…y caused by bugs in screen height in chrome. see https://bugs.chromium.org/p/chromium/issues/detail?id=1416398
  • Loading branch information
AtofStryker committed Sep 2, 2023
1 parent f2d793a commit 1d1827d
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 103 deletions.
2 changes: 1 addition & 1 deletion system-tests/__snapshots__/browser_crash_handling_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ exports['Browser Crash Handling / when the tab closes in chrome / fails'] = `
Running: chrome_tab_close.cy.js (1 of 2)
We detected that the Chrome tab running Cypress tests closed unexpectedly.
We detected that the Chrome browser process closed unexpectedly.
We have failed the current spec and aborted the run.
Expand Down
4 changes: 2 additions & 2 deletions system-tests/__snapshots__/component_testing_spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,9 @@ exports['experimentalSingleTabRunMode / executes all specs in a single tab'] = `
(Screenshots)
- /XXX/XXX/XXX/cypress/screenshots/1_fails.cy.js/simple failing spec -- fails (fai (1280x720)
- /XXX/XXX/XXX/cypress/screenshots/1_fails.cy.js/simple failing spec -- fails (fai (1280x603)
led).png
- /XXX/XXX/XXX/cypress/screenshots/1_fails.cy.js/simple failing spec -- fails agai (1280x720)
- /XXX/XXX/XXX/cypress/screenshots/1_fails.cy.js/simple failing spec -- fails agai (1280x603)
n (failed).png
Expand Down
33 changes: 15 additions & 18 deletions system-tests/__snapshots__/headless_spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ exports['e2e headless / tests in headless mode pass'] = `
e2e headless spec
✓ has the expected values for Cypress.browser
✓ has expected HeadlessChrome useragent
✓ has expected launch args
3 passing
2 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3
│ Passing: 3
│ Tests: 2
│ Passing: 2
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
Expand All @@ -48,9 +47,9 @@ exports['e2e headless / tests in headless mode pass'] = `
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ headless.cy.js XX:XX 3 3 - - - │
│ ✔ headless.cy.js XX:XX 2 2 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 3 3 - - -
✔ All specs passed! XX:XX 2 2 - - -
`
Expand All @@ -76,18 +75,17 @@ exports['e2e headless / tests in headed mode pass in !electron'] = `
e2e headless spec
✓ has the expected values for Cypress.browser
✓ has expected HeadlessChrome useragent
✓ has expected launch args
3 passing
2 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3
│ Passing: 3
│ Tests: 2
│ Passing: 2
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
Expand All @@ -105,9 +103,9 @@ exports['e2e headless / tests in headed mode pass in !electron'] = `
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ headless.cy.js XX:XX 3 3 - - - │
│ ✔ headless.cy.js XX:XX 2 2 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 3 3 - - -
✔ All specs passed! XX:XX 2 2 - - -
`
Expand All @@ -133,18 +131,17 @@ exports['e2e headless / tests in headed mode pass in electron'] = `
e2e headless spec
✓ has the expected values for Cypress.browser
✓ has expected HeadlessChrome useragent
✓ has expected launch args
3 passing
2 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 3
│ Passing: 3
│ Tests: 2
│ Passing: 2
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
Expand All @@ -162,9 +159,9 @@ exports['e2e headless / tests in headed mode pass in electron'] = `
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ headless.cy.js XX:XX 3 3 - - - │
│ ✔ headless.cy.js XX:XX 2 2 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 3 3 - - -
✔ All specs passed! XX:XX 2 2 - - -
`
62 changes: 62 additions & 0 deletions system-tests/__snapshots__/retries_spec.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,65 @@ https://on.cypress.io/test-retries
`

exports['retries / supports retries (chrome)'] = `
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 1.2.3 │
│ Browser: FooBrowser 88 │
│ Specs: 1 found (fail-twice.cy.js) │
│ Searched: cypress/e2e/fail-twice.cy.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: fail-twice.cy.js (1 of 1)
(Attempt 1 of 3) fail twice
(Attempt 2 of 3) fail twice
✓ fail twice
1 passing
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 1 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 2 │
│ Video: false │
│ Duration: X seconds │
│ Spec Ran: fail-twice.cy.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
(Screenshots)
- /XXX/XXX/XXX/cypress/screenshots/fail-twice.cy.js/fail twice (failed).png (1280x603)
- /XXX/XXX/XXX/cypress/screenshots/fail-twice.cy.js/fail twice (failed) (attempt 2 (1280x603)
).png
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ fail-twice.cy.js XX:XX 1 1 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! XX:XX 1 1 - - -
`
Loading

0 comments on commit 1d1827d

Please sign in to comment.