|
@@ -30,10 +30,12 @@ def test_add_row(screen: Screen):
|
|
screen.open('/')
|
|
screen.open('/')
|
|
table.options['rowData'].append({'name': 'Alice', 'age': 18})
|
|
table.options['rowData'].append({'name': 'Alice', 'age': 18})
|
|
screen.click('Update')
|
|
screen.click('Update')
|
|
|
|
+ screen.wait(0.5)
|
|
screen.should_contain('Alice')
|
|
screen.should_contain('Alice')
|
|
screen.should_contain('18')
|
|
screen.should_contain('18')
|
|
table.options['rowData'].append({'name': 'Bob', 'age': 21})
|
|
table.options['rowData'].append({'name': 'Bob', 'age': 21})
|
|
screen.click('Update')
|
|
screen.click('Update')
|
|
|
|
+ screen.wait(0.5)
|
|
screen.should_contain('Alice')
|
|
screen.should_contain('Alice')
|
|
screen.should_contain('18')
|
|
screen.should_contain('18')
|
|
screen.should_contain('Bob')
|
|
screen.should_contain('Bob')
|