mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
feat: First Time Setup Wizard (#3204)
* extract user registration form into a composable * added base wizard component * added partial setup implementation * removed unused attrs * added setup bypass * made setup page more readable * add checkbox hints to autoform * added common settings pages and initial submit logic * bypass setup in demo * add full name to user registration * added fullname and pw handling to setup * fixed wizard indentation * added post-setup suggestions * added tests for backend changes * renamed Wizard to BaseWizard * lint fixes * pass hardcoded default password instead of backend nonsense * removed old test * fix e2e * added setup skip to e2e testing for all admin users --------- Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,7 @@ def test_create_user_registration() -> None:
|
||||
group_token=None,
|
||||
email="SomeValidEmail@example.com",
|
||||
username="SomeValidUsername",
|
||||
full_name="SomeValidFullName",
|
||||
password="SomeValidPassword",
|
||||
password_confirm="SomeValidPassword",
|
||||
advanced=False,
|
||||
@@ -20,6 +21,7 @@ def test_create_user_registration() -> None:
|
||||
group_token="asdfadsfasdfasdfasdf",
|
||||
email="SomeValidEmail@example.com",
|
||||
username="SomeValidUsername",
|
||||
full_name="SomeValidFullName",
|
||||
password="SomeValidPassword",
|
||||
password_confirm="SomeValidPassword",
|
||||
advanced=False,
|
||||
@@ -35,6 +37,7 @@ def test_group_or_token_validator(group, group_token) -> None:
|
||||
group_token=group_token,
|
||||
email="SomeValidEmail@example.com",
|
||||
username="SomeValidUsername",
|
||||
full_name="SomeValidFullName",
|
||||
password="SomeValidPassword",
|
||||
password_confirm="SomeValidPassword",
|
||||
advanced=False,
|
||||
@@ -47,6 +50,7 @@ def test_group_no_args_passed() -> None:
|
||||
CreateUserRegistration(
|
||||
email="SomeValidEmail@example.com",
|
||||
username="SomeValidUsername",
|
||||
full_name="SomeValidFullName",
|
||||
password="SomeValidPassword",
|
||||
password_confirm="SomeValidPassword",
|
||||
advanced=False,
|
||||
@@ -61,6 +65,7 @@ def test_password_validator() -> None:
|
||||
group_token="asdfadsfasdfasdfasdf",
|
||||
email="SomeValidEmail@example.com",
|
||||
username="SomeValidUsername",
|
||||
full_name="SomeValidFullName",
|
||||
password="SomeValidPassword",
|
||||
password_confirm="PasswordDefNotMatch",
|
||||
advanced=False,
|
||||
|
||||
Reference in New Issue
Block a user