Skip to content

Commit

Permalink
[Fix] improve the way we wait for the particular Dashboard page to load
Browse files Browse the repository at this point in the history
For some dashboard pages, it takes time to load properly and they can
change the content during that time. E.g. there is a "Loading" text with
an animated gif provided until the actual page is present.

In case of accessing the Applications -> Enabled -> Jupyter app tile,
there may be also present a page title with "Loading..." text for a
brief amount of time. Such thing breaks our detection technique as then
our expected page title text doesn't match with what was present on the
page and fails with:
```
BuiltIn.Should Be Equal:
Loading... != Start a notebook server
```

Adding a couple of retries should help to avoid such situation.
  • Loading branch information
jstourac committed Oct 10, 2024
1 parent 3d83c66 commit c20e53a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ Wait For RHODS Dashboard To Load
IF "${expected_page}" == "${NONE}"
Wait Until Page Contains Element //div[@data-testid="home-page"] timeout=${timeout}
ELSE
Wait For Dashboard Page Title ${expected_page} timeout=${timeout}
Wait Until Keyword Succeeds 3x 5s
... Wait For Dashboard Page Title ${expected_page} timeout=${timeout}
END
IF ${wait_for_cards} == ${TRUE}
Wait Until Keyword Succeeds 3 times 5 seconds Wait Until Cards Are Loaded
Expand Down

0 comments on commit c20e53a

Please sign in to comment.