Skip to content

Commit

Permalink
chore: altering CDC-B2C tests to accomodate recent changes in functio…
Browse files Browse the repository at this point in the history
…nality
  • Loading branch information
anjana-bl committed Jan 13, 2025
1 parent 85e7673 commit 8d713bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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 8d713bd

Please sign in to comment.