glamorous-lighter-30340
09/07/2022, 3:41 PMswift-rain-28843
09/07/2022, 3:42 PMglamorous-lighter-30340
09/07/2022, 3:43 PMswift-rain-28843
09/07/2022, 3:45 PMglamorous-lighter-30340
09/07/2022, 3:45 PMbitter-fountain-36713
09/07/2022, 3:52 PMlittle-france-10142
09/07/2022, 5:17 PMspec
file in parallel? For instance, I need to simulate a new user creating a new document with some text in it. But I want to test after 50 documents have been made. I do not want to sit around waiting for 50 docs to be created. Is there a way to create all 50 docs in parallel?worried-lifeguard-15953
09/07/2022, 7:07 PMCypress.Commands.add('login', (username, pw) => {...})
But how do I do it when the argument needs to be an actual element? I'm wanting to do something like this that checks every matched element for the conditions (not just the first one that matches).
Cypress.Commands.add('checkElementClass', (element, class) => {
element.should('have.class', class);
});
...
// Check every <li> has the class
cy.get('ul>li').each((($el, index, $list)) => {
cy.checkElementClass($el, 'myClass');
});
// or
cy.get('ul>li').eq(0).as('li0'); cy.checkElementClass(li0, 'myClass');
// etc.
gray-kilobyte-89541
09/07/2022, 7:10 PMbroad-monkey-14727
09/07/2022, 8:26 PMfreezing-wall-7568
09/07/2022, 9:07 PMgray-kilobyte-89541
09/08/2022, 1:01 AM`[data-test=${selector}]`
flaky-airport-12178
09/08/2022, 5:07 AMsparse-kilobyte-59330
09/08/2022, 6:33 AMsparse-kilobyte-59330
09/08/2022, 6:34 AMacceptable-hamburger-48790
09/08/2022, 8:09 AMincalculable-winter-53928
09/08/2022, 8:19 AMincalculable-winter-53928
09/08/2022, 8:20 AMexpect(setStatusRequest.body.merchantIds[0]).to.equal(merchant.merchantId);
The test fails, because for some reason, the request still has the values from the previous onegray-kilobyte-89541
09/08/2022, 11:30 AMbroad-monkey-14727
09/08/2022, 11:36 AMflaky-airport-12178
09/08/2022, 11:36 AMbright-kangaroo-34963
09/08/2022, 1:00 PMstale-optician-85950
09/08/2022, 2:08 PMgray-kilobyte-89541
09/08/2022, 2:13 PMgray-kilobyte-89541
09/08/2022, 2:13 PM.then(index =>
after invoking the index
method?bitter-fountain-36713
09/08/2022, 2:14 PMflaky-airport-12178
09/08/2022, 3:08 PMsilly-exabyte-39686
09/08/2022, 3:09 PMbroad-monkey-14727
09/08/2022, 3:20 PMbroad-monkey-14727
09/08/2022, 3:23 PM