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
when I have in cypress/integration/todo-spec.js two describe blocks with one having .only both run.
describe.only('main features',function(){it('first spec',function(){})})describe('main features with assertions',function(){it('second spec',function(){})})
The above should execute only "main features" but Cypress 0.20.0 has
Here is the code bundled
(functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns})({1:[function(require,module,exports){'use strict';describe.only('main features',function(){it('first spec',function(){});});describe('main features with assertions',function(){it('second spec',function(){});});},{}]},{},[1]);
Notice that the first describe title is a substring of the second. If I change the first one, it will run correctly by itself
describe.only('main 2 features',function(){it('first spec',function(){})})describe('main features with assertions',function(){it('second spec',function(){})})
and if I change second describe title it will run again two describe blocks
describe.only('main 2 features',function(){it('first spec',function(){})})describe('main 2 features with assertions',function(){it('second spec',function(){})})
The text was updated successfully, but these errors were encountered:
In branch https://github.com/bahmutov/effective-e2e-testing-with-cypress/tree/double-only
when I have in
cypress/integration/todo-spec.js
two describe blocks with one having.only
both run.The above should execute only "main features" but Cypress 0.20.0 has
Here is the code bundled
Notice that the first describe title is a substring of the second. If I change the first one, it will run correctly by itself
and if I change second describe title it will run again two describe blocks
The text was updated successfully, but these errors were encountered: