Coder Social home page Coder Social logo

Comments (3)

javierbrea avatar javierbrea commented on May 25, 2024 1

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.

javierbrea avatar javierbrea commented on May 25, 2024

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.

haveaguess avatar haveaguess commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.