feat: Implement tournament schedule tab and fix E2E tests #27
@@ -16,7 +16,7 @@ function getTestCredentials() {
|
||||
const random = Math.random().toString(36).substring(7);
|
||||
return {
|
||||
email: `test-api-${timestamp}-${random}@example.com`,
|
||||
password: 'TestPassword123!',
|
||||
password: 'TestPassword1234!',
|
||||
name: `Test API User ${timestamp}`
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function getTestCredentials() {
|
||||
const timestamp = Date.now();
|
||||
return {
|
||||
email: `test-${timestamp}@example.com`,
|
||||
password: 'TestPassword123!',
|
||||
password: 'TestPassword1234!',
|
||||
name: `Test User ${timestamp}`
|
||||
};
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ Scenario: Successful registration with valid data
|
||||
Given I am on the registration page
|
||||
When I fill in "name" with "Test User"
|
||||
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
|
||||
Then I should be redirected to my profile page
|
||||
And my user account should exist
|
||||
|
||||
@@ -97,7 +97,7 @@ Feature: User Registration
|
||||
Scenario: Successful registration with valid data
|
||||
When I fill in "name" with "Test User"
|
||||
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
|
||||
Then I should be redirected to my profile page
|
||||
And my user account should exist
|
||||
|
||||
@@ -25,7 +25,7 @@ Feature: User Authentication
|
||||
@happy-path @authentication
|
||||
Scenario: Navigate to login 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
|
||||
|
||||
@happy-path @authentication
|
||||
|
||||
@@ -17,6 +17,7 @@ Feature: Player Schedule
|
||||
Then I should see "Upcoming Matches"
|
||||
And I should see the match date
|
||||
And I should see my opponent's name
|
||||
And I should see my partner's name
|
||||
And I should see the tournament name
|
||||
|
||||
@happy-path @player-features @issue-9 @wip
|
||||
|
||||
@@ -9,8 +9,8 @@ Feature: User Registration
|
||||
@happy-path @authentication
|
||||
Scenario: Successful registration with valid data
|
||||
When I fill in "name" with "Test User"
|
||||
And I fill in "email" with "test-user@example.com"
|
||||
And I fill in "password" with "TestPassword123!"
|
||||
And I fill in "email" with the generated unique email
|
||||
And I fill in "password" with "TestPassword1234!"
|
||||
And I click the "Create Account" button
|
||||
Then I should be redirected to my profile page
|
||||
And my user account should exist
|
||||
@@ -18,8 +18,8 @@ Feature: User Registration
|
||||
@happy-path @authentication
|
||||
Scenario: Auto-created player profile is linked to user
|
||||
When I fill in "name" with "Profile Test User"
|
||||
And I fill in "email" with "profile-test@example.com"
|
||||
And I fill in "password" with "ProfilePass123!"
|
||||
And I fill in "email" with the generated unique email
|
||||
And I fill in "password" with "ProfilePass1234!"
|
||||
And I click the "Create Account" button
|
||||
Then I should be redirected to my profile page
|
||||
And I should see "Welcome, Profile Test User"
|
||||
@@ -30,14 +30,14 @@ Feature: User Registration
|
||||
When I navigate to the registration page
|
||||
And I fill in "name" with "Duplicate User"
|
||||
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
|
||||
Then I should see a registration error
|
||||
|
||||
@negative-test @authentication
|
||||
Scenario: Registration with weak password fails
|
||||
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 click the "Create Account" button
|
||||
Then I should see "password" validation error
|
||||
@@ -54,6 +54,6 @@ Feature: User Registration
|
||||
Scenario: Registration with email verification (placeholder)
|
||||
When I fill in "name" with "Email Verify User"
|
||||
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
|
||||
Then I should see "Please check your email to verify your account"
|
||||
|
||||
@@ -18,7 +18,7 @@ function getTestCredentials() {
|
||||
const timestamp = Date.now();
|
||||
return {
|
||||
email: `logout-test-${timestamp}@example.com`,
|
||||
password: 'TestPassword123!',
|
||||
password: 'TestPassword1234!',
|
||||
name: `Logout Test User ${timestamp}`
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ function getTestCredentials() {
|
||||
const timestamp = Date.now();
|
||||
return {
|
||||
email: `register-test-${timestamp}@example.com`,
|
||||
password: 'TestPassword123!',
|
||||
password: 'TestPassword1234!',
|
||||
name: `Register Test User ${timestamp}`
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ export default async function globalSetup(config: FullConfig) {
|
||||
// Generate unique test credentials
|
||||
const timestamp = Date.now();
|
||||
const testEmail = `setup-user-${timestamp}@example.com`;
|
||||
const testPassword = 'TestPassword123!';
|
||||
const testPassword = 'TestPassword1234!';
|
||||
const testName = 'Setup User';
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user