Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Feb 2, 2023
1 parent c215383 commit 461492d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def switch_to(self, tab_id: int) -> None:
self.selenium.switch_to.window(self.selenium.window_handles[tab_id])

def should_contain(self, text: str) -> None:
assert self.selenium.title == text or self.find(text), f'could not find "{text}"'
if self.selenium.title == text:
return
self.find(text)

def should_not_contain(self, text: str) -> None:
assert self.selenium.title != text
Expand Down
1 change: 0 additions & 1 deletion tests/test_dialog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import List

from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

from nicegui import ui
Expand Down

0 comments on commit 461492d

Please sign in to comment.