numerous-kangaroo-93739
01/20/2022, 8:29 PMrich-lamp-44536
01/20/2022, 8:30 PMa const
?
or just
ts
const x = 'a'
cy.get('input').type(x)
numerous-kangaroo-93739
01/20/2022, 8:31 PMnumerous-kangaroo-93739
01/20/2022, 8:31 PMrich-lamp-44536
01/20/2022, 8:32 PMcy.task
is 👀
Never used that 🤔numerous-kangaroo-93739
01/20/2022, 8:33 PMnumerous-kangaroo-93739
01/20/2022, 10:18 PMfancy-match-96032
01/20/2022, 10:48 PMnumerous-kangaroo-93739
01/20/2022, 11:17 PMgray-kilobyte-89541
01/21/2022, 3:37 PM.then
to get the result from the tasknumerous-kangaroo-93739
01/21/2022, 3:56 PMnumerous-kangaroo-93739
01/21/2022, 3:56 PMfancy-match-96032
01/21/2022, 7:13 PMcy
commands https://docs.cypress.io/guides/core-concepts/variables-and-aliases#Return-Valuesfew-carpenter-48515
01/22/2022, 5:16 PMfew-carpenter-48515
01/22/2022, 5:16 PMbulky-sundown-74498
01/22/2022, 5:17 PMbulky-sundown-74498
01/22/2022, 5:18 PMfew-carpenter-48515
01/22/2022, 5:20 PMbeforeEach(() => Cypress.Cookies.preserveOnce('stasesstok'))
but I see in the debugger a lot of sets and removes of this cookie.bulky-sundown-74498
01/22/2022, 5:28 PMfew-carpenter-48515
01/22/2022, 5:40 PMfew-carpenter-48515
01/22/2022, 5:40 PMbulky-sundown-74498
01/22/2022, 5:41 PMbulky-sundown-74498
01/22/2022, 5:42 PMuser
01/22/2022, 6:02 PMts
it('does things', () => {
cy.get(".open-dialog-button").click();
cy.get(".dialog").get(".close-button").click();
cy.get(".toggle-something").click();
});
afterEachAssertion(() => {
cy.findByText(untranslatedTextIndicator).should("not.exist");
});
const untranslatedTextIndicator = "_*#¤_";
I know I could add these assertions manually at every stage of an expected visual change of my test suites, but I would like to avoid that if possible. Preferably this should be automated.fancy-match-96032
01/22/2022, 9:00 PMloud-monitor-58963
01/24/2022, 2:44 AMadorable-smartphone-87280
01/25/2022, 4:04 PMastonishing-apple-58598
01/31/2022, 8:57 PMfancy-match-96032
01/31/2022, 10:13 PMastonishing-apple-58598
01/31/2022, 11:15 PM