UI Test improvements as preparation for using docker and chrome (MGNLCE-86)

[MGNLCE-87] Use consequently waitUntils in dynamic situations instead of delays, asserts and nothing Created: 25/Jul/17  Updated: 07/Sep/17  Resolved: 04/Sep/17

Status: Closed
Project: Community Edition
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5.7, 5.6

Type: Sub-task Priority: Neutral
Reporter: Michael Mühlebach Assignee: Michael Mühlebach
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Sprint: Basel 106, Basel 107, Basel 108, Basel 109, Basel 110, Basel 111, Basel 112

 Description   

Using asserts together with delays in a dynamic web page context points to a test code smell: This points usually to a race condition. In such cases wait untils should be used. With wait untils we have the possibility to describe the precise condition we expect to be present after all dynamic actions took place.

As waitUntils are in the end like async assertions we should name them assert. Otherwise many developers tend to not fully understand the them. Two convinience methods are added to use wait untils with the emphasize on they being assertions in the naming. Additionally they have the possibility to add a fail message like any other assert method and throw the standard AssertionError instead of the TimeoutException.


Generated at Mon Feb 12 00:06:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.