cool-application-67821
06/18/2021, 4:52 AMuser
06/18/2021, 11:55 AM.within
, does cypress retry the .get
it was chained on? For instance:
cy.get('table tbody tr:nth(1)').within(() -> {
// some asserts here
})
user
06/18/2021, 11:57 AMcool-application-67821
06/18/2021, 2:51 PMthankful-lunch-80439
06/18/2021, 4:59 PMthankful-lunch-80439
06/18/2021, 4:59 PMbulky-sundown-74498
06/18/2021, 5:02 PMbulky-sundown-74498
06/18/2021, 5:02 PMthankful-lunch-80439
06/18/2021, 5:04 PMthankful-lunch-80439
06/18/2021, 5:08 PMthankful-lunch-80439
06/18/2021, 5:08 PMthankful-lunch-80439
06/18/2021, 5:13 PMbulky-sundown-74498
06/18/2021, 5:17 PMbulky-sundown-74498
06/18/2021, 5:17 PMcool-application-67821
06/18/2021, 9:31 PMcool-application-67821
06/18/2021, 9:31 PMbulky-sundown-74498
06/18/2021, 9:49 PMworried-pizza-99625
06/20/2021, 2:19 PMmammoth-arm-34681
06/22/2021, 9:06 AMfuture-journalist-95278
06/28/2021, 8:04 PMthankful-motherboard-76645
07/01/2021, 8:55 AMthankful-lunch-80439
07/08/2021, 3:51 PMwonderful-match-15836
07/08/2021, 4:06 PMdata-testid
attribute the element you want to select, and use that as your selector. And then there is always .eq(n)
(https://api.jquery.com/eq/) so you could do cy.get('.whatever').eq(1)
to get the second matching element. The drawback with that is that if, say, another question is added above, your tests will now be selecting that other option instead of your intended set, which could produce confusing results.thankful-lunch-80439
07/08/2021, 4:07 PMfuture-journalist-95278
07/14/2021, 4:29 AMsticky-dentist-24502
07/14/2021, 8:14 AMimportant-river-75795
07/14/2021, 8:17 AMhallowed-soccer-80135
07/14/2021, 8:30 AMit()
block. I am referring to retry on the parent describe()
level.
If one of the it() block fails even after re-trying for n
times, the entire describe()
should be retriedbest-yacht-92435
07/14/2021, 2:08 PMpurple-afternoon-2408
07/14/2021, 3:55 PMcy.get('input[type="date"]').eq(0).type('1980-06-24').should('have.value', '1980-06-24')
would have no affect or impact on the input?