-
Notifications
You must be signed in to change notification settings - Fork 4
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
How to detect navigation? #229
Comments
#190 in the other issue. |
Using
If we can figure out how to abort waiting for the [Otherwise] I think we can detect the GET [for initial navigation to an interview and POSTs, all from (to?) /interview, /run, and /start]. For 200s, we can wait for the Then there's more specific issues after a 200:
For 500s, we can just look for the DOM loading. Those can race against finding invalid value message elements (client-side validation) that do prevent any request from being made. We then have to abort the promises that don't get fulfilled. Not sure about 300s. [For interviews, they'd be like 200s. Maybe [the sign in 305 check] needs to be separate. On failure, sign in gets a 200, so we might have to use the url [for confirmation] there. I'm not sure what else we could detect [about sign in failure]. Maybe changes in the DOM. Regarding background actions mentioned above, we may leave those undetected for now, only looking for immediate navigation when tapping an element. |
tl;dr: background actions/responses use POST and don't totally reload the screen, though they may cause a redraw and do cause a More from da dev about background action behavior:
|
This is dragging out a bit longer than expected. I'm going to set this aside for the moment in favor of closing up the sign-in bug. In the meantime, some notes: The Plan: Make a "I try to continue but cannot continue" or something. It's too complex to otherwise detect correct failed navigation (for when authors want to check that they have correctly prevented the user from moving forward). We can keep the step that checks for an invalid answer, but change it so that it doesn't have to know about whether the previous click navigated or not. Otherwise we have to track state through multiple Steps in a complex way. Detect type of navigation or non-navigation:
I think that's approximately it. For messy start of implementation see https://github.com/plocket/ALKilnReview/tree/229_930_navigation. Note co-authors there and be sure to credit them in new work. Footnotes
|
I'm not sure it's possible because sometimes the page reloads the same page before moving on. I think there's another issue for this somewhere. If this wasn't the case, we may be able to use the sought var to test for the uniqueness of the page.
The text was updated successfully, but these errors were encountered: