Skip to content

Commit

Permalink
add test to demonstrate "JavaScript did not respond in time" error (see
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Sep 21, 2022
1 parent 1f36b9b commit d12f6ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_pages.py
Expand Up @@ -69,6 +69,16 @@ def page():
assert any(('nipplejs.min.js' in s) for s in srcs)


def test_automatic_loading_of_keyboard_dependency(user: User):
@ui.page('/')
def page():
ui.keyboard()

user.open('/')
assert any(('keyboard.js' in s) for s in user.get_attributes('script', 'src'))
user.sleep(2)


def test_shared_and_individual_pages(user: User):

@ ui.page('/individual_page')
Expand Down

0 comments on commit d12f6ab

Please sign in to comment.