Skip to content

Commit

Permalink
fixed e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hakwookim committed Jan 14, 2025
1 parent 5203cc7 commit 7404438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('Language switch - my-account pages', () => {
describe('address book page', () => {
const addressBookPath = siteContextSelector.ADDRESS_BOOK_PATH;
const deutschName = siteContextSelector.TITLE_DE;
const deutsEdit = siteContextSelector.EDIT_DE;

it('should change language in the url', () => {
siteContextSelector.verifySiteContextChangeUrl(
Expand Down Expand Up @@ -56,7 +57,9 @@ describe('Language switch - my-account pages', () => {
siteContextSelector.LANGUAGE_DE,
siteContextSelector.LANGUAGE_LABEL
);
cy.get('cx-address-book button').contains('Edit').click({ force: true });
cy.get('cx-address-book button')
.contains(deutsEdit)
.click({ force: true });

cy.get(
'cx-address-form .ng-select[formcontrolname="titleCode"]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const TITLE_DE = 'Herr';
export const MONTH_DE = new Date().toLocaleDateString('de-DE', {
month: 'long',
});
export const EDIT_DE = 'Bearbeiten';

export const PRODUCT_PATH_1 = `/product/${PRODUCT_ID_1}`;
export const PRODUCT_PATH_2 = `/product/${PRODUCT_ID_2}`;
Expand Down

0 comments on commit 7404438

Please sign in to comment.