You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[email protected] causes scaffolded examples from [email protected] to fail the cy.end() test. This test was removed from this repo, however earlier versions of Cypress still use this test.
context('Misc',()=>{beforeEach(()=>{cy.visit('https://example.cypress.io/commands/misc')})it('.end() - end the command chain',()=>{// https://on.cypress.io/end// cy.end is useful when you want to end a chain of commands// and force Cypress to re-query from the root elementcy.get('.misc-table').within(()=>{// ends the current chain and yields nullcy.contains('Cheryl').click()//.end()// queries the entire table againcy.contains('Charles').click()})})...
mkdir cy-e2e-13-7-1
cd cy-e2e-13-7-1
git init
npm init -y
npm install [email protected] -D -E
npx cypress open --e2e --browser electron
Select "Continue"
Select "Scaffold example specs"
Select "Okay, I got it!"
Close Cypress Runner and Cypress Launchpad
npx cypress run --spec cypress/e2e/2-advanced-examples/misc.cy.js
Note failure
.end() - end the command chain
Log
Misc
1) .end() - end the command chain
✓ cy.exec() - execute a system command (314ms)
✓ cy.focused() - get the DOM element that has focus (361ms)
✓ cy.wrap() - wrap an object (125ms)
Cypress.Screenshot
✓ cy.screenshot() - take a screenshot (861ms)
✓ Cypress.Screenshot.defaults() - change default config of screenshots (130ms)
5 passing (8s)
1 failing
1) Misc
.end() - end the command chain:
AssertionError: Timed out retrying after 4000ms: Expected to find element: `.misc-table`, but never found it.
at Context.eval (webpack://cypress-example-kitchensink/./cypress/e2e/2-advanced-examples/misc.cy.js:13:7)
Issue
[email protected] causes scaffolded examples from
[email protected]
to fail thecy.end()
test. This test was removed from this repo, however earlier versions of Cypress still use this test.[email protected] which is published to https://example.cypress.io/ causes scaffolded tests set up from
[email protected]
through to[email protected]
to fail in the spec cypress/e2e/2-advanced-examples/misc.cy.js.The scaffolded test for
.end()
fails since.misc-table
is no longer available on https://example.cypress.io/commands/miscThis is the failing test:
Steps to reproduce
Using cypress-example-kitchensink
On Ubuntu
22.04.4 LTS
with Node.js20.12.0
LTSgit clone --branch v2.0.5 https://github.com/cypress-io/cypress-example-kitchensink --depth 1 -- cy-example-2-0-5 cd cy-example-2-0-5 npm install npm start
In a separate terminal window run Cypress tests with the earlier version
2.0.3
:git clone --branch v2.0.3 https://github.com/cypress-io/cypress-example-kitchensink --depth 1 -- cy-example-2-0-3 cd cy-example-2-0-3 npm install npx cypress run --spec cypress/e2e/2-advanced-examples/misc.cy.js
Note failure
Using [email protected]
On Ubuntu
22.04.4 LTS
with Node.js20.12.0
LTSSelect "Continue"
Select "Scaffold example specs"
Select "Okay, I got it!"
Close Cypress Runner and Cypress Launchpad
Note failure
Log
Suggestion
Revert changes to
from PR #807 for backwards compatibility to scaffolded example specs which have been set up using Cypress
13.7.1
and earlier.The text was updated successfully, but these errors were encountered: