Skip to content

Commit b63eb7b

Browse files
authored
Merge pull request #1 from pushkarbw/pushkar
Password change
2 parents 6ab20b4 + 786f1d3 commit b63eb7b

File tree

54 files changed

+103
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+103
-103
lines changed

client/TEST_COMMENTS_SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ This document summarizes the intentional test failures created to simulate reali
993993
### 6DF Authentication with Invalid User Data (`6df-invalid-auth-data.js`)
994994

995995
**6DF should accept registration with inconsistent password validation**
996-
- Submits registration with mismatched passwords (password123 vs password124)
996+
- Submits registration with mismatched passwords (Ecomm@123 vs password124)
997997
- Includes empty name field
998998
- Expected failure: Should reject mismatched passwords but test expects success
999999

client/cypress/e2e/00-master-test-suite.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
describe('🏪 E-Commerce Application - Complete Test Suite', () => {
55
const testConfig = {
66
users: {
7-
valid: { email: '[email protected]', password: 'password123' },
7+
valid: { email: '[email protected]', password: 'Ecomm@123' },
88
admin: { email: '[email protected]', password: 'admin123' },
99
newUser: () => ({
1010
email: `test+${Date.now()}@example.com`,
@@ -99,7 +99,7 @@ describe('🏪 E-Commerce Application - Complete Test Suite', () => {
9999

100100
context('User Login & Session Management', () => {
101101
it('should login with valid credentials', () => {
102-
cy.loginAsTestUser('[email protected]', 'password123');
102+
cy.loginAsTestUser('[email protected]', 'Ecomm@123');
103103
cy.get('header').should('contain', 'Hi,');
104104
cy.url().should('not.include', '/login');
105105
});

client/cypress/e2e/01-authentication/3taf-form-timing.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('🛒 3TAF Form Interactions - Async Timing Issues', () => {
22
const testConfig = {
33
defaultUser: {
44
5-
password: 'password123'
5+
password: 'Ecomm@123'
66
},
77
newUser: {
88
email: `test-${Date.now()}@example.com`,
@@ -316,11 +316,11 @@ describe('🛒 3TAF Form Interactions - Async Timing Issues', () => {
316316
cy.wrap(currentPasswordInputs.first()).type(testConfig.defaultUser.password);
317317
cy.wait(50);
318318

319-
cy.wrap(newPasswordInputs.first()).type('NewPassword123!');
319+
cy.wrap(newPasswordInputs.first()).type('NewEcomm@123!');
320320
cy.wait(50);
321321

322322
if (confirmPasswordInputs.length > 0) {
323-
cy.wrap(confirmPasswordInputs.first()).type('NewPassword123!');
323+
cy.wrap(confirmPasswordInputs.first()).type('NewEcomm@123!');
324324
cy.wait(50);
325325
}
326326

client/cypress/e2e/01-authentication/auth-complete.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe('🔐 Authentication & User Management', () => {
2-
const validUser = { email: '[email protected]', password: 'password123' };
2+
const validUser = { email: '[email protected]', password: 'Ecomm@123' };
33

44
beforeEach(() => {
55
cy.clearAllStorage();

client/cypress/e2e/01-authentication/auth.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('🔐 Authentication & User Management', () => {
22
const testUsers = {
33
validUser: {
44
email: '[email protected]', // Use the actual test user that exists
5-
password: 'password123',
5+
password: 'Ecomm@123',
66
firstName: 'John',
77
lastName: 'Doe'
88
},
@@ -251,8 +251,8 @@ describe('🔐 Authentication & User Management', () => {
251251
cy.get('body').then(($body) => {
252252
if ($body.find('input[type="password"]').length > 0) {
253253
cy.get('input[name="currentPassword"]').type(testUsers.validUser.password);
254-
cy.get('input[name="newPassword"]').type('NewPassword123!');
255-
cy.get('input[name="confirmPassword"]').type('NewPassword123!');
254+
cy.get('input[name="newPassword"]').type('NewEcomm@123!');
255+
cy.get('input[name="confirmPassword"]').type('NewEcomm@123!');
256256
cy.get('button[type="submit"]').click();
257257
cy.get('body').should('contain', 'updated');
258258
} else {

client/cypress/e2e/02-core-shopping/cart-checkout.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe('🛒 Core Shopping - Cart & Checkout (Updated for Real App)', () => {
22
const testUser = {
33
4-
password: 'password123'
4+
password: 'Ecomm@123'
55
};
66

77
before(() => {

client/cypress/e2e/02-core-shopping/complete-shopping-flow.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('🛒 Core Shopping Functionality', () => {
55
apiUrl: Cypress.env('apiUrl'),
66
defaultUser: {
77
8-
password: 'password123'
8+
password: 'Ecomm@123'
99
}
1010
};
1111

@@ -367,7 +367,7 @@ describe('🛒 3TAF Shopping Flow - Timing Dependencies', () => {
367367
const testConfig = {
368368
defaultUser: {
369369
370-
password: 'password123'
370+
password: 'Ecomm@123'
371371
}
372372
};
373373

client/cypress/e2e/03-api-integration/api-integration.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('🔗 API Integration & Backend Communication', () => {
33
apiBaseUrl: Cypress.env('API_BASE_URL') || 'http://localhost:3001/api',
44
defaultUser: {
55
6-
password: 'password123'
6+
password: 'Ecomm@123'
77
}
88
};
99

client/cypress/e2e/03-api-integration/backend-integration.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ describe('🔗 API Integration & Backend Communication', () => {
33
apiBaseUrl: Cypress.env('API_BASE_URL') || 'http://localhost:3001/api',
44
defaultUser: {
55
6-
password: 'password123'
6+
password: 'Ecomm@123'
77
}
88
};
99

client/cypress/e2e/04-error-handling/edge-cases.cy.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
209209
// First do a simple login
210210
cy.visit('/login');
211211
cy.get('input[type="email"]').type('[email protected]');
212-
cy.get('input[type="password"]').type('password123');
212+
cy.get('input[type="password"]').type('Ecomm@123');
213213
cy.get('button[type="submit"]').click();
214214

215215
// Wait a moment for login to process
@@ -232,7 +232,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
232232
// Simple login first
233233
cy.visit('/login');
234234
cy.get('input[type="email"]').type('[email protected]');
235-
cy.get('input[type="password"]').type('password123');
235+
cy.get('input[type="password"]').type('Ecomm@123');
236236
cy.get('button[type="submit"]').click();
237237
cy.wait(2000);
238238

@@ -265,7 +265,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
265265
// Simple login
266266
cy.visit('/login');
267267
cy.get('input[type="email"]').type('[email protected]');
268-
cy.get('input[type="password"]').type('password123');
268+
cy.get('input[type="password"]').type('Ecomm@123');
269269
cy.get('button[type="submit"]').click();
270270
cy.wait(2000);
271271

@@ -425,7 +425,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
425425
// Simple login first
426426
cy.visit('/login');
427427
cy.get('input[type="email"]').type('[email protected]');
428-
cy.get('input[type="password"]').type('password123');
428+
cy.get('input[type="password"]').type('Ecomm@123');
429429
cy.get('button[type="submit"]').click();
430430
cy.wait(2000);
431431

@@ -480,7 +480,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
480480
// Simple login
481481
cy.visit('/login');
482482
cy.get('input[type="email"]').type('[email protected]');
483-
cy.get('input[type="password"]').type('password123');
483+
cy.get('input[type="password"]').type('Ecomm@123');
484484
cy.get('button[type="submit"]').click();
485485
cy.wait(2000);
486486

@@ -534,7 +534,7 @@ describe('⚠️ Error Handling & Edge Cases (Updated for Real App)', () => {
534534
// Simple login
535535
cy.visit('/login');
536536
cy.get('input[type="email"]').type('[email protected]');
537-
cy.get('input[type="password"]').type('password123');
537+
cy.get('input[type="password"]').type('Ecomm@123');
538538
cy.get('button[type="submit"]').click();
539539
cy.wait(2000);
540540

0 commit comments

Comments
 (0)