adventurous-dream-20049
04/19/2022, 5:12 PMnice-machine-16386
04/19/2022, 6:17 PMcy.get('#element').contains('my text')
2. cy.contains('#element', 'my text')
3. cy.get('#element').should('contain.text', 'my text')
nice-machine-16386
04/19/2022, 6:21 PMcypress open
? I'm on mac but run it like this ./node_modules/cypress/bin/cypress open
.quick-pizza-16489
04/19/2022, 7:17 PMhallowed-doctor-10352
04/20/2022, 12:08 PMgray-kilobyte-89541
04/20/2022, 12:58 PMmammoth-fall-22117
04/20/2022, 1:31 PMgray-kilobyte-89541
04/20/2022, 1:36 PMdefaultCommandTimeout
is a config value, not a user environment variable, so it is not read from the env file. You can vary it instead using CLI arguments or via CYPRESS_...
environment variable. You can even set it inside your plugins file after looking at the environmentmammoth-fall-22117
04/20/2022, 1:39 PMmammoth-fall-22117
04/20/2022, 1:52 PMmammoth-fall-22117
04/20/2022, 1:58 PMbland-oil-91894
04/20/2022, 2:09 PMfresh-doctor-14925
04/20/2022, 2:32 PMdocker run
commandbland-oil-91894
04/21/2022, 12:45 PMfresh-doctor-14925
04/21/2022, 1:26 PMbland-oil-91894
04/22/2022, 6:28 AMpowerful-gigabyte-69168
04/22/2022, 7:06 PMcy.now()
to enable me to make moves on behalf of my opponent.
Just wondering if anyone else has found creative uses for cypress outside of pure testing
EDIT: looks like discord won't let me post a gif, so here's a link to the file instead: https://github.com/cuttle-cards/cuttle-assets/blob/main/assets/six.gifâ–ľ
powerful-gigabyte-69168
04/22/2022, 7:09 PMgray-kilobyte-89541
04/22/2022, 7:55 PMpowerful-gigabyte-69168
04/22/2022, 7:55 PMpowerful-gigabyte-69168
04/22/2022, 7:56 PMcy.now()
for video makingpowerful-gigabyte-69168
04/22/2022, 7:57 PMgray-kilobyte-89541
04/23/2022, 10:21 AMcy.window().its('app.state.elementId').then(id => cy.get('#' + id))
powerful-gigabyte-69168
04/23/2022, 10:37 AMcy.now()
to run commands on behalf of the other user, and those commands can’t execute nested chains like the abovepowerful-gigabyte-69168
04/23/2022, 10:38 AMcy.window().its()
like you have above in order to manually enter those ids into my cy.now()
executed commandsgray-kilobyte-89541
04/23/2022, 11:54 AMwindow.app.state ...
directly and still access the cy.now
via Cypress.cy.now
powerful-gigabyte-69168
04/23/2022, 12:58 PMgentle-alarm-63723
04/25/2022, 9:40 AMgentle-alarm-63723
04/25/2022, 9:41 AMgentle-alarm-63723
04/25/2022, 9:44 AM