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
I used a global object for cy.get commands, which usually works for Cypress testing. It works here if all tests run in the same specify function. Otherwise, all tests except the first fail with a vague "Undefined does not have class <classname>" error.
Desired behavior:
Ideally, I shouldn't have to redefine my cy.get options parameter for each specify. At minimum, Cypress should provide a useful error message.
Steps to reproduce: (app code and test code)
This works only when inlining the options object, i.e. {timeout: 120000} instead of options
Current behavior:
I used a global object for cy.get commands, which usually works for Cypress testing. It works here if all tests run in the same
specify
function. Otherwise, all tests except the first fail with a vague "Undefined does not have class <classname>" error.Desired behavior:
Ideally, I shouldn't have to redefine my
cy.get
options parameter for eachspecify
. At minimum, Cypress should provide a useful error message.Steps to reproduce: (app code and test code)
This works only when inlining the options object, i.e.
{timeout: 120000}
instead ofoptions
Versions
Cypress 3.4.1 running Chrome 77
The text was updated successfully, but these errors were encountered: