Comments (3)
Hi @haveaguess,
Thank you, now I understood. The plugin stops Cypress using a beforeEach
hook in order to let Cypress execute other afterEach
hooks when a test fails. Please let me think about a solution.
from cypress-fail-fast.
Hi @haveaguess,
I'm sorry but I don't understand what do you need or what is wrong in this plugin. I'm not sure, but if you are facing any localStorage issue, probably it is not related to this plugin, note that Cypress by default does not persist localStorage between tests, you can try the cypress-localstorage-commands plugin for persisting it.
In case that is not the problem, please provide more details.
from cypress-fail-fast.
Thanks for reply,
Cypress kills the local storage before running any test which is great because if a test fails and bombs out I can use the app in Cypress GUI and see what is wrong (Im not logged out)
But when I use Fail Fast I get logged out, so I can only assume it is clearing the Local Storage
From looking at your code this is because you mark the next test for skipping and stop the runner in the before
of the next test by which time Cypress has trashed LocalStorage. Does it need to use this strategy? Any ideas for preserving the LocalStorage in failure situation (not other situations)
The hacked approach I shared above stops the LocalStorage being trashed when it stops the test but I would prefer to use your library
from cypress-fail-fast.
Related Issues (20)
- Examples HOT 2
- Make number of failed tests configurable HOT 3
- Action Required: Fix Renovate Configuration
- Do not log "Enabling skip mode" in every failed test HOT 1
- Getting this Error(1) "after each" hook in "{root}") and not progressing further HOT 5
- Update plugin to be compatible with Cypress 10
- Instead of skipping the test case, can we fail the trailing tests for reporting purposes? HOT 1
- Avoid clashing global types between Cypress and Jest HOT 10
- Disable plugin local and enable on CI HOT 2
- Parallel setting not working HOT 3
- Parallel run example in README produces an error
- Handle possible errors in parallel callbacks
- Support async parallel callbacks
- Tests are not skipped on specs HOT 5
- Add the possibility to add another task when tests are skipped with cypress-failure-fast plugin HOT 3
- Plugin is not skipping any tests. HOT 3
- Use of mutation testing in cypress-fail-fast - Help needed HOT 1
- Argument of type '{ failFast: { enabled: boolean; }; }' is not assignable to parameter of type 'SuiteConfigOverrides'. HOT 4
- Choose strategy of the BAIL option
- Latest release v7.0.2 throws Webpack Compilation Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-fail-fast.