they can pass a callback to instead wait until a specific condition passed eg until button text equals something
Why:
We need to be sure that the Dom is loaded properly when the location is awaited, to test this, we could add a basic Dom content loaded handler that adds text to the Dom, assert we see the text
another thing I want to make sure we can cover is say the JS is what loads the content on the page eg API calls, React/Vue, where a basic view is displayed, and API calls are made once pagebis loaded to get a use rod users or whatever
There is also wait(‘$.active’) I used in Laravel, investigate this to see if it can help in waiting for these things
Acceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
[ ] Write documentation
[ ] Write unit tests
[ ] Write integration tests
[ ] {add more checkboxes required by this issue as needed}
Summary
What:
Wait for:
Why:
We need to be sure that the Dom is loaded properly when the location is awaited, to test this, we could add a basic Dom content loaded handler that adds text to the Dom, assert we see the text
another thing I want to make sure we can cover is say the JS is what loads the content on the page eg API calls, React/Vue, where a basic view is displayed, and API calls are made once pagebis loaded to get a use rod users or whatever
There is also
wait(‘$.active’)
I used in Laravel, investigate this to see if it can help in waiting for these thingsAcceptance Criteria
Below is a list of tasks that must be completed before this issue can be closed.
Example Pseudo Code (for implementation)