Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Feb 2, 2023
1 parent 3670653 commit c215383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ async def show() -> None:
screen.click('Open')
screen.click('No')
screen.click('Open')
ActionChains(screen.selenium).send_keys(Keys.ESCAPE).perform()
screen.type(Keys.ESCAPE)
screen.wait(0.5)
assert results == ['Yes', 'No', None]
5 changes: 1 addition & 4 deletions tests/test_keyboard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By

from nicegui import ui
Expand All @@ -13,7 +12,5 @@ def test_keyboard(screen: Screen):
screen.open('/')
assert screen.selenium.find_element(By.ID, keyboard.id)
screen.wait(1.0)
ActionChains(screen.selenium) \
.send_keys('t') \
.perform()
screen.type('t')
screen.should_contain('t, KeyboardAction(keydown=False, keyup=True, repeat=False)')

0 comments on commit c215383

Please sign in to comment.