Get help with testing, discuss unit testing strategies etc.


Post by jminutella »

Hi all,

Is it possible to have a test that can wait for refreshing the page/app reload? For example - I have a Settings feature of my app that saves changes and then reloads the page. I'd like to test that the settings were saved correctly after the page loads.

Thanks!

Post by mats »

Sure, please read: https://bryntum.com/docs/siesta/#!/guide/cross_page_testing

Set 'enablePageRedirect ' for such a test to have the test code "survive" a page reload, then it'll be easy to test it for you.

Also related: https://bryntum.com/docs/siesta/#!/api/Siesta.Test.Browser-method-waitForPageLoad

Post Reply