tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# BUG-001 — Age boundary of 18 is incorrectly rejected
|
||||
|
||||
- **Priority:** High
|
||||
- **Severity:** Major
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Open the registration form
|
||||
2. Fill in all fields with valid data
|
||||
3. Enter `18` in the "Age" field
|
||||
4. Click "Create account"
|
||||
- **Expected result:** Registration succeeds (the hint under the field states "registration is open from 18 years old")
|
||||
- **Actual result:** The form shows the error "Age must be between 18 and 99"
|
||||
- **Notes:** Looks like a classic off-by-one error in the comparison condition (`<=` used instead of `<`)
|
||||
@@ -0,0 +1,12 @@
|
||||
# BUG-002 — Terms and conditions checkbox is not validated
|
||||
|
||||
- **Priority:** Critical
|
||||
- **Severity:** Blocker
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Fill in all form fields with valid data
|
||||
2. Do **not** check the "I agree to the Terms of Service" checkbox
|
||||
3. Click "Create account"
|
||||
- **Expected result:** The form blocks submission and shows an error below the checkbox
|
||||
- **Actual result:** The form submits successfully, as if consent had been given
|
||||
- **Impact:** Legal risk — a user can register without accepting the terms of service
|
||||
@@ -0,0 +1,13 @@
|
||||
# BUG-003 — Email without a top-level domain passes validation
|
||||
|
||||
- **Priority:** Medium
|
||||
- **Severity:** Major
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Open the registration form
|
||||
2. Fill in all fields with valid data
|
||||
3. Enter `user@mail` in the "Email" field (no `.com`, `.net`, etc.)
|
||||
4. Click "Create account"
|
||||
- **Expected result:** The form shows the error "Please enter a valid email address"
|
||||
- **Actual result:** The form accepts the address as valid; registration succeeds
|
||||
- **Notes:** The regular expression only checks for the presence of `@`, but does not check for a top-level domain (a dot after `@`)
|
||||
@@ -0,0 +1,12 @@
|
||||
# BUG-004 — Password shorter than the stated minimum passes validation
|
||||
|
||||
- **Priority:** High
|
||||
- **Severity:** Major
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Fill in all form fields with valid data
|
||||
2. Enter `abc123` (6 characters) in both "Password" and "Confirm password"
|
||||
3. Click "Create account"
|
||||
- **Expected result:** Error "Password must be at least 8 characters" (as stated in the field hint)
|
||||
- **Actual result:** The form accepts a 6-character password; registration succeeds
|
||||
- **Notes:** Mismatch between the displayed hint/error text (8 characters) and the actual validation logic (6 characters)
|
||||
@@ -0,0 +1,13 @@
|
||||
# BUG-005 — Password confirmation is compared case-insensitively
|
||||
|
||||
- **Priority:** Critical
|
||||
- **Severity:** Blocker
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Fill in all form fields with valid data
|
||||
2. Enter `Secret12` in the "Password" field
|
||||
3. Enter `secret12` (same string, lowercase) in "Confirm password"
|
||||
4. Click "Create account"
|
||||
- **Expected result:** Error "Passwords do not match" — the strings differ when case is considered
|
||||
- **Actual result:** The form treats the passwords as matching; registration succeeds
|
||||
- **Impact:** A user may accidentally set a password that differs from what they intended to type — risk of being unable to log in later
|
||||
@@ -0,0 +1,12 @@
|
||||
# BUG-006 — Minimum username length is not validated
|
||||
|
||||
- **Priority:** Low
|
||||
- **Severity:** Minor
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Fill in the form, enter a single character in "Username", e.g. `B`
|
||||
2. Fill in the remaining fields with valid data
|
||||
3. Click "Create account"
|
||||
- **Expected result:** Error "Username must be between 3 and 20 characters"
|
||||
- **Actual result:** The form accepts a 1-character username; registration succeeds
|
||||
- **Notes:** The code only checks for an empty string and the upper bound (20 characters); the lower bound is missing
|
||||
@@ -0,0 +1,12 @@
|
||||
# BUG-007 — Upper age boundary is not validated
|
||||
|
||||
- **Priority:** Medium
|
||||
- **Severity:** Major
|
||||
- **Environment:** Chrome 128, desktop
|
||||
- **Steps to reproduce:**
|
||||
1. Fill in all form fields with valid data
|
||||
2. Enter `200` in the "Age" field
|
||||
3. Click "Create account"
|
||||
- **Expected result:** Error "Age must be between 18 and 99"
|
||||
- **Actual result:** The form accepts the value `200`; registration succeeds
|
||||
- **Notes:** The code only checks the lower bound (`age <= 18`); the upper bound (99) is never checked
|
||||
Reference in New Issue
Block a user