15 lines
418 B
Python
15 lines
418 B
Python
|
|
|
||
|
|
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)**"
|