bored-kitchen-98972
01/01/2023, 5:23 PMfresh-truck-40418
01/02/2023, 10:21 AMit()
to cover the whole process.
With the 11.x I just had to do one .visit()
to go to the fist step. Then I fill the inputs I need, then I submit the form from this first step and boom, second step without a new visit, since the page changed with the validation of the form.
How I am supposed to do with the 12.x version? I think I can't do a beforeEach() => cy.visit()
since I don't know the URL of the differents steps.
I have some concern about the duration of the test too if I have to login, visit the page, etc. before each of my 18 it()
.
What should I do?
Thank you for your answers.magnificent-finland-58048
01/02/2023, 11:01 AMfresh-truck-40418
01/02/2023, 11:04 AMit()
on my side. I use them like one it()
is one thing to test on my page.
Like on it() to fill this input, an other for an other one, etc.
So yes, it's absolutely order-dependent.
I understand my mistake, indeed.
Thank you very much for the rest of your comment, I will watch this out very carefully.
have a nice day and an happy new year!green-book-63455
01/02/2023, 11:06 AMcolossal-table-38461
01/02/2023, 6:46 PMmelodic-egg-83620
01/02/2023, 7:54 PMmelodic-egg-83620
01/02/2023, 7:59 PMasync/await
, use cy.request
and .then
to then do X or Y after said request is finished. If you want it to be a function you call, make it a command, and wrap the request response in cy.wrap
at the end of the commend, which you can then call and use .then
to get the wrapped response.gray-kilobyte-89541
01/02/2023, 8:38 PMmelodic-egg-83620
01/03/2023, 2:08 PMastonishing-window-24437
01/03/2023, 6:36 PMastonishing-window-24437
01/03/2023, 6:36 PMgray-kilobyte-89541
01/03/2023, 7:09 PMaloof-quill-23445
01/03/2023, 7:38 PMaloof-quill-23445
01/03/2023, 7:38 PMgray-kilobyte-89541
01/03/2023, 7:49 PMaloof-quill-23445
01/03/2023, 7:52 PMadorable-smartphone-87280
01/03/2023, 7:53 PMaloof-quill-23445
01/03/2023, 8:05 PMadorable-smartphone-87280
01/03/2023, 8:05 PMadorable-smartphone-87280
01/03/2023, 8:06 PMadorable-smartphone-87280
01/03/2023, 8:06 PMadorable-smartphone-87280
01/03/2023, 8:06 PMaloof-quill-23445
01/03/2023, 8:08 PMadorable-smartphone-87280
01/03/2023, 8:08 PMintercept
. Sounds like your UI needs to not clear that spinner until it's truly ready for form input.aloof-quill-23445
01/03/2023, 8:08 PMaloof-quill-23445
01/03/2023, 8:09 PMsticky-energy-17458
01/04/2023, 4:54 AMfreezing-nest-81773
01/04/2023, 6:14 AMthis.skip()
but apparently this only works for a single test but no the whole suite...
Below is the code I currently have but that fails.
describe("TESTING-365 ...", () => {
//Conditional skip
if(["DEVE","INTE"].includes(Cypress.env("name"))) {
this.skip()
}
}
gray-kilobyte-89541
01/04/2023, 11:35 AM@bahmutov/cy-grep
plugin