aloof-midnight-3678
06/15/2022, 3:24 PMaloof-midnight-3678
06/15/2022, 3:48 PMhappy-rose-36850
06/15/2022, 4:31 PMaloof-midnight-3678
06/15/2022, 4:32 PMmicroscopic-postman-52154
06/15/2022, 5:27 PMenough-shoe-72187
06/15/2022, 11:04 PMenough-shoe-72187
06/15/2022, 11:04 PMchilly-queen-22182
06/16/2022, 12:17 AMlate-house-1562
06/16/2022, 12:49 AMcommands.ts
and e2e.ts
imports it.
Is there something else I need to configure to use my own commands?late-house-1562
06/16/2022, 1:12 AMlate-house-1562
06/16/2022, 1:22 AMflaky-airport-12178
06/16/2022, 3:19 AMflaky-airport-12178
06/16/2022, 3:20 AMworried-parrot-50579
06/16/2022, 8:21 AMechoing-painting-40909
06/16/2022, 8:49 AMtsconfig.json
file. You can find the related documentation here: https://docs.cypress.io/guides/tooling/typescript-support#Install-TypeScript
A boilerplate would not have a great value here.nutritious-honey-65632
06/16/2022, 8:50 AMdiv textContent
property to some value using cypress?flaky-airport-12178
06/16/2022, 8:52 AMdry-agency-21242
06/16/2022, 9:32 AMgray-kilobyte-89541
06/16/2022, 10:38 AMgray-kilobyte-89541
06/16/2022, 10:39 AMnutritious-honey-65632
06/16/2022, 10:43 AMgentle-accountant-4760
06/16/2022, 11:21 AMts
cy.get('[action="add"]').contains('custom');
and I wonder if this element is found, can I get the full text out of this call?gray-kilobyte-89541
06/16/2022, 11:43 AM.invoke('text')
gentle-accountant-4760
06/16/2022, 11:47 AMgentle-accountant-4760
06/16/2022, 11:49 AMts
cy.get('[action="add"]').contains('custom').get('.selenium-custom-tag');
Meaning that it will go inside the [action="add"]
and then check if it contains custom
and if it does then it will go inside the [action="add"] > .selenium-custom-tag
?gentle-accountant-4760
06/16/2022, 11:49 AM.selenium-custom-tag
in the htmlgray-kilobyte-89541
06/16/2022, 11:50 AMgray-kilobyte-89541
06/16/2022, 11:51 AMIF
is an anti-pattern https://glebbahmutov.com/cypress-examples/recipes/conditional-testing.htmlgentle-accountant-4760
06/16/2022, 11:52 AMthen