This commit is contained in:
@@ -5,7 +5,7 @@ def test_change_theme(app):
|
||||
app.run()
|
||||
app.switch_page("pages/settings.py").run()
|
||||
|
||||
assert app.session_state.current_theme =="light", "Light theme should be default"
|
||||
assert app.session_state.current_theme == "light", "Light theme should be default"
|
||||
|
||||
assert app.button[0].label == "Light"
|
||||
assert app.button[0].disabled == True, "Light theme should be selected"
|
||||
@@ -16,6 +16,8 @@ def test_change_theme(app):
|
||||
app.button[1].click().run()
|
||||
|
||||
assert "dark" == crud.get_theme()
|
||||
assert app.button[0].disabled == False, "Light theme should be de-selected"
|
||||
assert app.button[1].disabled == True, "Dark theme should be selected"
|
||||
|
||||
def test_change_color_palette(app):
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user