diff --git a/ui/tests/sign-up/sign-up.md b/ui/tests/sign-up/sign-up.md new file mode 100644 index 0000000000..4b0d8b38de --- /dev/null +++ b/ui/tests/sign-up/sign-up.md @@ -0,0 +1,41 @@ +### E2E Tests: User Sign-Up + +**Suite ID:** `SIGNUP-E2E` +**Feature:** New user registration flow. + +--- + +## Test Case: `SIGNUP-E2E-001` - Successful new user registration and login + +**Priority:** `critical` + +**Tags:** +- type → @e2e +- feature → @signup + +**Description/Objetive:** Registers a new user with valid data, verifies redirect to Login (OSS), and confirms the user can authenticate. + +**Preconditions:** +- Application is running, email domain & password is acceptable for sign-up. +- No existing data in Prowler is required; the test can run on a clean state. + +### Flow Steps: +1. Navigate to the Sign up page. +2. Fill the form with valid data (unique email, valid password, terms accepted). +3. Submit the form. +4. Verify redirect to the Login page. +5. Log in with the newly created credentials. + +### Expected Result: +- Sign-up succeeds and redirects to Login. +- User can log in successfully using the created credentials and reach the home page. + +### Key verification points: +- After submitting sign-up, the URL changes to `/sign-in`. +- The newly created credentials can be used to sign in successfully. +- After login, the user lands on the home (`/`) and main content is visible. + +### Notes: +- Test data uses a random base36 suffix to avoid collisions with email. + + diff --git a/ui/tests/sign-up/sign-up.spec.ts b/ui/tests/sign-up/sign-up.spec.ts index ef2c0ae3d7..757d142679 100644 --- a/ui/tests/sign-up/sign-up.spec.ts +++ b/ui/tests/sign-up/sign-up.spec.ts @@ -4,7 +4,7 @@ import { SignInPage } from "../sign-in/sign-in-page"; import { makeSuffix } from "../helpers"; test.describe("Sign Up Flow", () => { - test("should register a new user successfully", { tag: ['@critical'] }, async ({ page }) => { + test("should register a new user successfully", { tag: ['@critical', '@e2e', '@signup', '@SIGNUP-E2E-001'] }, async ({ page }) => { // Initialize page objects for sign-up and sign-in flows const signUpPage = new SignUpPage(page); await signUpPage.goto();