gentle-accountant-4760
06/28/2022, 12:18 PMfresh-doctor-14925
06/28/2022, 12:20 PMgentle-accountant-4760
06/28/2022, 12:21 PMgentle-accountant-4760
06/28/2022, 12:21 PMfresh-doctor-14925
06/28/2022, 12:23 PMgentle-accountant-4760
06/28/2022, 12:24 PMfresh-doctor-14925
06/28/2022, 12:26 PMgentle-accountant-4760
06/28/2022, 12:26 PMSuite
Before
Scneario
it
it
it
it
Thats how I have it todaygentle-accountant-4760
06/28/2022, 12:26 PMfresh-doctor-14925
06/28/2022, 12:26 PMbefore
and not beforeEach
gentle-accountant-4760
06/28/2022, 12:27 PMit
tests, I want to keep the sessions for the whole rest of the testgentle-accountant-4760
06/28/2022, 12:27 PMfresh-doctor-14925
06/28/2022, 12:27 PMgentle-accountant-4760
06/28/2022, 12:28 PMgentle-accountant-4760
06/28/2022, 12:28 PMfresh-doctor-14925
06/28/2022, 12:29 PMit()
blocksgentle-accountant-4760
06/28/2022, 12:30 PMfresh-doctor-14925
06/28/2022, 12:31 PMcy.session()
is designed for that very use case. I'd suggest either refactoring your tests to make use of it, or merge all of your it()
blocks into onegentle-accountant-4760
06/28/2022, 12:33 PMsalmon-river-93816
06/28/2022, 12:36 PMsalmon-river-93816
06/28/2022, 12:49 PMsalmon-river-93816
06/28/2022, 12:50 PMsome-angle-80895
06/28/2022, 1:03 PMsome-angle-80895
06/28/2022, 1:04 PMwooden-teacher-96595
06/28/2022, 1:30 PMsalmon-river-93816
06/28/2022, 1:57 PMrough-magazine-51515
06/28/2022, 2:33 PMrough-magazine-51515
06/28/2022, 2:33 PMlate-planet-4481
06/28/2022, 3:20 PMlet myArray = []
cy.get('option').each((x) => {
cy.wrap(x).invoke('val').then((val) => myArray.push(val))
})