And I scroll to the id "[id]" semi-reliably fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
New
|
Undecided
|
Unassigned |
Bug Description
The test that showed me this was the following:
./mahara_behat.sh rundebug site_features/
I have been finding line 60 is problematic.
If I add a breakpoint and stretch the window wide so the Edit button is visible it is reliable. I also tried it many times without stretching it out and it works while the breakpoint is in place.
The suspicion is the "And I scroll to the id "webservices_
Potential fixes.
Adding a "And I wait "1" seconds" allows the test to pass reliably.
However, it adds time and only fixes this one instance.
I'm wondering if building the delay into "And I scroll to the id "[id]"" and the other 'scroll into' steps. Adding a check that the requested id is actually in the viewport here would prevent this issue in all places making the tests more robust.