]> git.openstreetmap.org Git - rails.git/commit
Wait for the button to be disabled, before checking the tooltip behaviour
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 21 Dec 2022 16:42:02 +0000 (16:42 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 21 Dec 2022 17:08:51 +0000 (17:08 +0000)
commit6f471c72c93d67bf086c18e6a3cc24fd882fbb2c
tree3e583907d1e66b212f52241f466a82725df0c333
parent7d80c7747f8d77045da516cafa71282b954d0538
Wait for the button to be disabled, before checking the tooltip behaviour

Rather than sleeping for a fixed period, we can use Capybara's built-in
ability to wait for elements to be present. Since we're only changing
the state of existing elements though, we need to wait for their
"disabled" property to be set.

Fixes some timing-related problems with the test suite.
test/system/site_test.rb