Reload page during test?

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
jminutella
Posts: 54
Joined: Wed Oct 19, 2016 3:03 pm

Reload page during test?

Post by jminutella » Wed Jan 15, 2020 5:16 pm

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!

User avatar
mats
Core Developer
Core Developer
Posts: 15358
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Reload page during test?

Post by mats » Wed Jan 15, 2020 5:53 pm

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
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply