-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a Polymer SPA there are complete reloads between each test #1509
Comments
Hi, |
I can certainly understand that you want a clean test environment the have a clear picture of what get's tested, but if you are working with an single page application (SPA) you definitely don't want to reset the application between tests. You want to be able to jump from one page (or situation) to another and stay in the application. I use the fixture hook to logon but I am afraid this does not solve the problem. As alternative doing everything in one big test would mean building very large test functions that test a lot of situations. Moreover you cannot see the test steps and if something is wrong the whole testing is stopped. I am new with e2e browser testing and I don't know if Selenium works the same way (because I much prefer the power and simplicity of TestCafe), but I don't see how to setup a good working test script this way. |
I understand you point, it makes sense. We should consider an ability to add some option that switch on a mode where the page state is not completely reset between tests (like just calling |
Yes, exactly. I am not sure what is happening between tests (next to page reloads), but in this situation nothing should change. For instance an option on fixture level (something like noReloadBetweenTests). |
closed in favor of the #1770 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
I am a newby on testcafe so it might be ignorance on my part.
When loading a Polymer SPA I am using fixture.page('http...) to initialize the app.
Unfortunately the page is reloaded (and therefor the SPA is reinitialized) between each test.
This is of course not what you want in a SPA but I can't find how to prevent this behavior.
The text was updated successfully, but these errors were encountered: