I have been working on a project where we use a service which stores the context data of a modal. The test works fine when only a single test is run (by filtering). But if more than one test runs then some of them may fail. I don’t understand why that happens. Maybe the service might be storing the data. The data may not be cleared from the service after each test finishes.
How to clear the service data?