test: update test files and documentation

This commit is contained in:
2026-04-26 16:37:39 -07:00
parent d436b1f66e
commit 9589bb8718
10 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ function getTestCredentials() {
const random = Math.random().toString(36).substring(7); const random = Math.random().toString(36).substring(7);
return { return {
email: `test-api-${timestamp}-${random}@example.com`, email: `test-api-${timestamp}-${random}@example.com`,
password: 'TestPassword123!', password: 'TestPassword1234!',
name: `Test API User ${timestamp}` name: `Test API User ${timestamp}`
}; };
} }
+1 -1
View File
@@ -15,7 +15,7 @@ function getTestCredentials() {
const timestamp = Date.now(); const timestamp = Date.now();
return { return {
email: `test-${timestamp}@example.com`, email: `test-${timestamp}@example.com`,
password: 'TestPassword123!', password: 'TestPassword1234!',
name: `Test User ${timestamp}` name: `Test User ${timestamp}`
}; };
} }
+1 -1
View File
@@ -107,7 +107,7 @@ Scenario: Successful registration with valid data
Given I am on the registration page Given I am on the registration page
When I fill in "name" with "Test User" When I fill in "name" with "Test User"
And I fill in "email" with "test@example.com" And I fill in "email" with "test@example.com"
And I fill in "password" with "TestPassword123!" And I fill in "password" with "TestPassword1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should be redirected to my profile page Then I should be redirected to my profile page
And my user account should exist And my user account should exist
+1 -1
View File
@@ -97,7 +97,7 @@ Feature: User Registration
Scenario: Successful registration with valid data Scenario: Successful registration with valid data
When I fill in "name" with "Test User" When I fill in "name" with "Test User"
And I fill in "email" with "test@example.com" And I fill in "email" with "test@example.com"
And I fill in "password" with "TestPassword123!" And I fill in "password" with "TestPassword1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should be redirected to my profile page Then I should be redirected to my profile page
And my user account should exist And my user account should exist
+1 -1
View File
@@ -25,7 +25,7 @@ Feature: User Authentication
@happy-path @authentication @happy-path @authentication
Scenario: Navigate to login page Scenario: Navigate to login page
Given I am on the home page Given I am on the home page
When I click the "Log in" link When I click the "Sign in" link
Then I should be on the login page Then I should be on the login page
@happy-path @authentication @happy-path @authentication
@@ -17,6 +17,7 @@ Feature: Player Schedule
Then I should see "Upcoming Matches" Then I should see "Upcoming Matches"
And I should see the match date And I should see the match date
And I should see my opponent's name And I should see my opponent's name
And I should see my partner's name
And I should see the tournament name And I should see the tournament name
@happy-path @player-features @issue-9 @wip @happy-path @player-features @issue-9 @wip
@@ -9,8 +9,8 @@ Feature: User Registration
@happy-path @authentication @happy-path @authentication
Scenario: Successful registration with valid data Scenario: Successful registration with valid data
When I fill in "name" with "Test User" When I fill in "name" with "Test User"
And I fill in "email" with "test-user@example.com" And I fill in "email" with the generated unique email
And I fill in "password" with "TestPassword123!" And I fill in "password" with "TestPassword1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should be redirected to my profile page Then I should be redirected to my profile page
And my user account should exist And my user account should exist
@@ -18,8 +18,8 @@ Feature: User Registration
@happy-path @authentication @happy-path @authentication
Scenario: Auto-created player profile is linked to user Scenario: Auto-created player profile is linked to user
When I fill in "name" with "Profile Test User" When I fill in "name" with "Profile Test User"
And I fill in "email" with "profile-test@example.com" And I fill in "email" with the generated unique email
And I fill in "password" with "ProfilePass123!" And I fill in "password" with "ProfilePass1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should be redirected to my profile page Then I should be redirected to my profile page
And I should see "Welcome, Profile Test User" And I should see "Welcome, Profile Test User"
@@ -30,14 +30,14 @@ Feature: User Registration
When I navigate to the registration page When I navigate to the registration page
And I fill in "name" with "Duplicate User" And I fill in "name" with "Duplicate User"
And I fill in "email" with the same email And I fill in "email" with the same email
And I fill in "password" with "TestPassword123!" And I fill in "password" with "TestPassword1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should see a registration error Then I should see a registration error
@negative-test @authentication @negative-test @authentication
Scenario: Registration with weak password fails Scenario: Registration with weak password fails
When I fill in "name" with "Weak Password User" When I fill in "name" with "Weak Password User"
And I fill in "email" with "weak@example.com" And I fill in "email" with the generated unique email
And I fill in "password" with "weak" And I fill in "password" with "weak"
And I click the "Create Account" button And I click the "Create Account" button
Then I should see "password" validation error Then I should see "password" validation error
@@ -54,6 +54,6 @@ Feature: User Registration
Scenario: Registration with email verification (placeholder) Scenario: Registration with email verification (placeholder)
When I fill in "name" with "Email Verify User" When I fill in "name" with "Email Verify User"
And I fill in "email" with "verify@example.com" And I fill in "email" with "verify@example.com"
And I fill in "password" with "TestPassword123!" And I fill in "password" with "TestPassword1234!"
And I click the "Create Account" button And I click the "Create Account" button
Then I should see "Please check your email to verify your account" Then I should see "Please check your email to verify your account"
+1 -1
View File
@@ -18,7 +18,7 @@ function getTestCredentials() {
const timestamp = Date.now(); const timestamp = Date.now();
return { return {
email: `logout-test-${timestamp}@example.com`, email: `logout-test-${timestamp}@example.com`,
password: 'TestPassword123!', password: 'TestPassword1234!',
name: `Logout Test User ${timestamp}` name: `Logout Test User ${timestamp}`
}; };
} }
+1 -1
View File
@@ -20,7 +20,7 @@ function getTestCredentials() {
const timestamp = Date.now(); const timestamp = Date.now();
return { return {
email: `register-test-${timestamp}@example.com`, email: `register-test-${timestamp}@example.com`,
password: 'TestPassword123!', password: 'TestPassword1234!',
name: `Register Test User ${timestamp}` name: `Register Test User ${timestamp}`
}; };
} }
+1 -1
View File
@@ -80,7 +80,7 @@ export default async function globalSetup(config: FullConfig) {
// Generate unique test credentials // Generate unique test credentials
const timestamp = Date.now(); const timestamp = Date.now();
const testEmail = `setup-user-${timestamp}@example.com`; const testEmail = `setup-user-${timestamp}@example.com`;
const testPassword = 'TestPassword123!'; const testPassword = 'TestPassword1234!';
const testName = 'Setup User'; const testName = 'Setup User';
try { try {