Skip to content
Advertisement

Cypress: Run all specs but create a loop without run specs

I have a problem with Cypress.io, here is my problem :

I have 4 different test files here :

integration/socle_full_ts_dev/1_register_user.spec.js

JavaScript

integration/socle_full_ts_local/1_register_user_local.spec.js

JavaScript

integration/socle_full_ts_local/2_login_user_local.spec.js

JavaScript

integration/socle_full_ts_dev/2_login_user.spec.js

JavaScript

And the problem that I meet is that when I want to launch all the tests at the same time it turns in a loop and does not get out of it. I checked the web to see if someone had already had the problem and I didn’t find … here is a video demonstrating the problem :

Cypress problem gif

Here is what i tried :

  • To put tests standby with xit
  • Look in the documentation if there was anything to do with memory allocation…
  • Separate tests with folders

My tests are not that complicated I just test the registration of a user and the login of the same user…

If someone has an idea ? Thanks 🙂

Advertisement

Answer

OK i have a solutions of this problem :

In my tests I have :

it('Register ramdom user on Socle', () => { // test });

and to solve the problem just convert its into :

it('Validated register first user', function () { // test });

I don’t know why, but it work !

If anyone knows why i am taker 🙂

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement