Pause until element becomes visible or event is triggered #157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Whenever the element to be highlighted in the next step is not yet available when moving to the next step (e.g. it's loading or within a modal) the process fails with an error that selector could not be find.
Thanks to pause function one can hide the overlay and wait until particular action happens:
Especially the last one is extremely useful. One can for example wait for the modal to show up or control to load and automatically restart whenever it is shown. In the meantime user can see the whole app without an overlay.
This can be also used to let user play around and only restart the tour when particular action is triggered, meanwhile not disturbing the user with the overlay and instructions.
It's basically a timeout, but event-based.