Page 1 of 1

Reload page during test?

Posted: Wed Jan 15, 2020 5:16 pm
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!

Re: Reload page during test?

Posted: Wed Jan 15, 2020 5:53 pm
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