Skip to content

Commit 795b412

Browse files
✅ [#341] test: attempt to make the tests less flaky
1 parent dbbd3cd commit 795b412

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/src/openbeheer/utils/gherkin_e2e.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,12 @@ def user_logs_out(self, page: Page) -> None:
175175
profile_button = page.get_by_role("button", name="Profiel")
176176
profile_button.click()
177177

178-
logout_button = page.get_by_role("button", name="Logout")
179-
logout_button.wait_for()
180-
181178
# ¯\_(ツ)_/¯ - Attempt to fix flakiness in WebKit
182179
if self.runner.browser.browser_type.name == "webkit":
183180
page.wait_for_timeout(120)
184181

182+
logout_button = page.get_by_role("button", name="Logout")
183+
logout_button.wait_for()
185184
logout_button.click()
186185

187186
# Navigation

0 commit comments

Comments
 (0)