This commit is contained in:
15
tests/ui/settings_ui_test.py
Normal file
15
tests/ui/settings_ui_test.py
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
def test_change_color_palette(app):
|
||||
app.run()
|
||||
app.switch_page("pages/settings.py").run()
|
||||
|
||||
assert app.button[0].disabled == True
|
||||
assert app.button[0].label == "Flames **(selected)**"
|
||||
|
||||
app.button[1].click().run()
|
||||
|
||||
assert app.button[0].disabled == False
|
||||
assert app.button[0].label == "Flames"
|
||||
|
||||
assert app.button[1].disabled == True
|
||||
assert app.button[1].label == "Water **(selected)**"
|
||||
Reference in New Issue
Block a user