I have almost 100 specs files including multiple tests. I want run all these specs files by login one time. I dont want my cypress should login process every time on every spec file It it possible to persist single login for all spec files
cypress run --group <name> You can add multiple groups to the same run by passing a different name. This can help distinguish groups of specs from each other. Specifying the --ci-build-id may also be necessary.
Take a look at our "Logging in" recipes https://github.com/cypress-io/cypress-example-recipes#logging-in-recipes - most of them log in once using before
hook, and then save the cookie / token in a local variable and set it again and again in beforeEach
hook
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With