Skip to content

Commit

Permalink
bugfix-CXSPA-9247: CDC-B2C E2E Failing due to functionality (#19864)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjana-bl authored Jan 21, 2025
1 parent ab97d5e commit a563f39
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ describe('CDC B2B scenarios', () => {
cy.window().then((win) => win.sessionStorage.clear());
});

it('should NOT send email to invalid email address in CDC screenset (CXINT-23)', () => {
it('should send email to invalid email address in CDC screenset (CXINT-23)', () => {
cdc.forgotPassword('[email protected]');
cdc.verifyForgotPasswordError();
cdc.verifyForgotPasswordSuccess();
});

it('should send email to invalid email address in CDC screenset (CXINT-23)', () => {
Expand All @@ -305,9 +305,9 @@ describe('CDC B2B scenarios', () => {
cy.window().then((win) => win.sessionStorage.clear());
});

it('should NOT send email to invalid email address in CDC (CXINT-23)', () => {
it('should send email to invalid email address in CDC (CXINT-23)', () => {
cdc.forgotPasswordWithoutScreenset('[email protected]');
cdc.verifyForgotPasswordWithoutScreensetError();
cdc.verifyForgotPasswordWithoutScreensetSuccess();
});

it('should send email to valid email address in CDC (CXINT-23)', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import * as alerts from '../../../../helpers/global-message';
import * as cdc from '../../../../helpers/vendor/cdc/cdc';
const requiredFieldMessage = 'This field is required';
const requiredFieldMessage = 'Field is required';
const message = 'New address was added successfully!';

describe('CDC', () => {
Expand Down Expand Up @@ -245,9 +245,9 @@ describe('CDC', () => {
cy.window().then((win) => win.sessionStorage.clear());
});

it('should NOT send email to invalid email address in CDC screenset (CXINT-23)', () => {
it('should send email to invalid email address in CDC screenset (CXINT-23)', () => {
cdc.forgotPassword('[email protected]');
cdc.verifyForgotPasswordError();
cdc.verifyForgotPasswordSuccess();
});

it('should send email to invalid email address in CDC screenset (CXINT-23)', () => {
Expand All @@ -261,9 +261,9 @@ describe('CDC', () => {
cy.window().then((win) => win.sessionStorage.clear());
});

it('should NOT send email to invalid email address in CDC (CXINT-23)', () => {
it('should send email to invalid email address in CDC (CXINT-23)', () => {
cdc.forgotPasswordWithoutScreenset('[email protected]');
cdc.verifyForgotPasswordWithoutScreensetError();
cdc.verifyForgotPasswordWithoutScreensetSuccess();
});

it('should send email to valid email address in CDC (CXINT-23)', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { listenForTokenRevocationRequest } from '../../login';
export const updatedName = ' updated';
export const updatedEmail = '[email protected]';
export const updatedB2BEmail = '[email protected]';
export const updatedPassword = 'NewPassword123.';
export const updatedPassword = 'NewPas!sword123.';

export function registerUser(cdcUser) {
cy.findByText("Don't have an account yet?").click();
Expand Down

0 comments on commit a563f39

Please sign in to comment.