Support demo users
Some checks failed
Run Tests / run-tests (push) Failing after 1m2s

This commit is contained in:
2026-05-01 17:41:42 +02:00
parent a88d1b4e79
commit 0632899f7a
11 changed files with 169 additions and 134 deletions

View File

@@ -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()