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
describe('do something',function(){it.only('1 does this',function(){...})// doesn't runit('2 does that later',function(){...})// doesn't runit.only('3 does this as well',function(){...})// runs})
I would expect only tests 1 and 3 to run (this is what happens in mocha), but Cypress only runs the last one (3). Surprisingly, it does allow running more than one test when using only if they have the same name.
describe('do something',function(){it.only('1 does this',function(){...})// runsit('2 does that later',function(){...})// doesn't runit.only('1 does this',function(){...})// runs})
It would be nice if only in Cypress matched the behavior of mocha
The text was updated successfully, but these errors were encountered:
Current behavior:
When I run this suite
I would expect only tests 1 and 3 to run (this is what happens in mocha), but Cypress only runs the last one (3). Surprisingly, it does allow running more than one test when using only if they have the same name.
It would be nice if
only
in Cypress matched the behavior of mochaThe text was updated successfully, but these errors were encountered: