Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around inconsistent button click in promotion order spec
Apparently, `find_button(...).click` will not consistently wait for the Javascript imported via importmaps to be loaded before execution. This adds a helper that executes a bit of Javascript that adds some data to the body element of the page after waiting for a minute amount of time, and then waits for this data to actually appear in the DOM. See https://gist.github.com/adrienpoly/862846f5882796fdeb4fc85b260b3c5a for a similar solution. This unfortunately adds code to the production build that's only needed for testing.
- Loading branch information