|
@@ -1,4 +1,3 @@
|
|
|
-import pytest
|
|
|
from selenium.webdriver.common.by import By
|
|
|
|
|
|
from nicegui import ui
|
|
@@ -127,16 +126,3 @@ def test_remove_and_clear(screen: Screen):
|
|
|
screen.should_not_contain('Label A')
|
|
|
screen.should_not_contain('Label B')
|
|
|
screen.should_not_contain('Label C')
|
|
|
-
|
|
|
-
|
|
|
-@pytest.mark.parametrize('once', [True, False])
|
|
|
-def test_setting_visibility_in_timer(screen: Screen, once: bool):
|
|
|
- '''reproduction of https://github.com/zauberzeug/nicegui/issues/206'''
|
|
|
- @ui.page('/')
|
|
|
- def page():
|
|
|
- label = ui.label('Some Label')
|
|
|
- ui.timer(0.1, lambda: label.set_visibility(False), once=once)
|
|
|
-
|
|
|
- screen.open('/')
|
|
|
- screen.wait(0.5)
|
|
|
- screen.should_not_contain('Some Label')
|