prehistoric-restaurant-72560
03/03/2023, 2:57 PMicy-zoo-67885
03/03/2023, 3:20 PMcurved-pager-86474
03/03/2023, 5:52 PMgray-fireman-87590
03/03/2023, 8:56 PMbillions-forest-4884
03/03/2023, 9:38 PMmodern-dawn-86006
03/04/2023, 5:02 AMcreamy-knife-18587
03/04/2023, 5:07 PMIn fact, Cypress does not clean up its own internal state when the test ends.
But isn't this contradictory to the fact that cypress cleans up everything like cookies, local storage, spies etc after each test?
Moreover, in the example in the section referred above, won't logout anyway happen (as cookies are cleared after each test) and so there won't be no need to write cy.logout()
?
Could someone plz throw some clarity on this? I'm getting confused after reading it, apologies if i am missing anything π
colossal-table-38461
03/04/2023, 6:02 PMadorable-motorcycle-9887
03/04/2023, 9:22 PMmany-musician-13324
03/05/2023, 2:09 PMCustomDialog
component with an exposed showDialog
method, but I can't call it from the test. I tried using the vue test-utils wrapper https://docs.cypress.io/guides/component-testing/vue/examples#Customizing-cymount but I can't get it working.
Any help would be appreciated! πcurved-agent-32333
03/05/2023, 2:11 PMclever-analyst-59201
03/05/2023, 4:17 PM.env.test
with the env variable but it still errored (supposed to do that)curved-agent-32333
03/06/2023, 8:16 AMmost-table-70794
03/06/2023, 9:00 AMcypress run
with the baseUrl set I keep getting this error :
Cypress failed to verify that your server is running.
Please start this server and then run Cypress again.
But when I remove the baseUrl and replace all cy.visit(/)
to my website's url it just fails to open it.
Meanwhile running cypress open
works fine and allows me to run my spec without any problem.echoing-hamburger-46900
03/06/2023, 11:20 AMcy.get(".classOfElement", {timeout:10000}).should("be.visible").and("contain", "some text ")
From my understanding, the chained should()
should abide by the timeout defined in get()
. So even if the element is found by get()
it won't return the element until the should()
and the and()
are satisfied. Am I wrong? Is that not how it works?
Currently the behaviour I see is that the initial get()
runs, the element is found, but it doesn't seem to wait any longer after that for the chained commands. Which in turn instantly fail because the contents hasn't loaded yet.adventurous-garden-6944
03/06/2023, 12:14 PMlimited-yacht-64327
03/06/2023, 1:10 PMincalculable-rainbow-43330
03/06/2023, 1:50 PMbrief-kite-35331
03/06/2023, 3:29 PMelegant-cartoon-16547
03/06/2023, 3:38 PMripe-apple-15128
03/06/2023, 4:17 PMcy.intercept({
pathname: '/rest/orders/',
query: {
'filter{created_at.gte}': `${end.minus({ days: 14 }).toISO()}`,
},
}, { fixture: 'transformed-orders-primary-reports' });
cy.intercept({
pathname: '/rest/orders/',
query: {
'filter{created_at.gte}': `${end.minus({ days: 28 }).toISO()}`,
},
} ,{ fixture: 'transformed-orders-secondary-reports' });
});
adventurous-garden-6944
03/06/2023, 4:40 PMadventurous-garden-6944
03/06/2023, 4:56 PMmelodic-egg-83620
03/06/2023, 5:10 PMbrainy-easter-37961
03/06/2023, 6:12 PMvideoCompression
value and how fast the compression will run? I'm looking into making our test runs faster, but without completely disabling the screen recordings. Will decreasing the CRF make the compression algorithm run faster?
docs link: https://docs.cypress.io/guides/references/configuration#Videoschilly-queen-22182
03/06/2023, 9:52 PMshy-ice-49412
03/06/2023, 10:39 PMgray-crayon-29691
03/07/2023, 12:26 AMcy.writeFile
does not work in cypress run
mode when writing data from the async function but works in cypress IDE cypress open
mode
Any idea why this is not working in cypress run
mode?
async function getSheet() {
return 'something'
}
cy.writeFile('file.js', JSON.stringify(getSheet))
happy-van-86145
03/07/2023, 10:40 AMmagnificent-baker-97250
03/07/2023, 11:29 AM