diff --git a/packages/internet-header/cypress/e2e/breadcrumbs.cy.ts b/packages/internet-header/cypress/e2e/breadcrumbs.cy.ts index b75b0054fb..2934a9d180 100644 --- a/packages/internet-header/cypress/e2e/breadcrumbs.cy.ts +++ b/packages/internet-header/cypress/e2e/breadcrumbs.cy.ts @@ -1,7 +1,7 @@ import { IPortalConfig } from '../../src/models/general.model'; import rawTestConfiguration from '../fixtures/internet-header/test-configuration.json'; import { prepare } from '../support/prepare-story'; -import { BREADCRUMBS, BREADCRUMBS_CUSTOM_ITEMS } from './shared/variables'; +import { BREADCRUMBS } from './shared/variables'; const testConfiguration: IPortalConfig = rawTestConfiguration as any; @@ -40,7 +40,7 @@ describe('breadcrumb', () => { }); it(`should add custom elements`, () => { - prepare(BREADCRUMBS_CUSTOM_ITEMS, 'Default'); + prepare(BREADCRUMBS, 'CustomItems'); cy.changeArg('custom-items', [ { text: 'Test1', url: '/x/y/z' }, diff --git a/packages/internet-header/cypress/e2e/main-navigation.cy.ts b/packages/internet-header/cypress/e2e/main-navigation.cy.ts index 7b107a143b..61dec7fc61 100644 --- a/packages/internet-header/cypress/e2e/main-navigation.cy.ts +++ b/packages/internet-header/cypress/e2e/main-navigation.cy.ts @@ -1,6 +1,6 @@ import testConfiguration from '../fixtures/internet-header/test-configuration.json'; import { prepare } from '../support/prepare-story'; -import { HEADER, HEADER_CUSTOM_CONFIG } from './shared/variables'; +import { HEADER } from './shared/variables'; describe('main-navigation', () => { beforeEach(() => { @@ -49,7 +49,7 @@ describe('main-navigation', () => { }); it('Changes active link also in custom config nav links', () => { - prepare(HEADER_CUSTOM_CONFIG, 'Default'); + prepare(HEADER, 'CustomConfig'); cy.changeArg('language', 'en'); cy.changeArg('active-route', 'https://maps.google.com'); cy.get('swisspost-internet-header') diff --git a/packages/internet-header/cypress/e2e/main-slot.cy.ts b/packages/internet-header/cypress/e2e/main-slot.cy.ts index 89a6c59aa7..7f8f4855f1 100644 --- a/packages/internet-header/cypress/e2e/main-slot.cy.ts +++ b/packages/internet-header/cypress/e2e/main-slot.cy.ts @@ -1,5 +1,5 @@ import { prepare } from '../support/prepare-story'; -import { HEADER, HEADER_CUSTOM_CONTENT } from './shared/variables'; +import { HEADER } from './shared/variables'; describe('main-navigation', () => { describe('slotted element: false', () => { @@ -18,7 +18,7 @@ describe('main-navigation', () => { describe('slotted element: true', () => { beforeEach(() => { - prepare(HEADER_CUSTOM_CONTENT, 'Default'); + prepare(HEADER, 'CustomContent'); cy.get('swisspost-internet-header').find('[slot=main]').as('slotted-element'); cy.get('swisspost-internet-header') diff --git a/packages/internet-header/cypress/e2e/shared/variables.ts b/packages/internet-header/cypress/e2e/shared/variables.ts index abeb5f09e1..c4c8635055 100644 --- a/packages/internet-header/cypress/e2e/shared/variables.ts +++ b/packages/internet-header/cypress/e2e/shared/variables.ts @@ -1,6 +1,3 @@ export const HEADER = 'ebb11274-091b-4cb7-9a3f-3e0451c9a865'; -export const HEADER_CUSTOM_CONFIG = 'bfdf4e7c-37d3-40f8-a5d0-734f3e6612b4'; -export const HEADER_CUSTOM_CONTENT = 'f09859db-8270-482b-a884-5b5584f86a45'; -export const FOOTER = '27fc009d-3eec-43a9-b3a2-55531e721817'; export const BREADCRUMBS = '4347e5bf-8bf2-4f44-9075-9faaa53591ed'; -export const BREADCRUMBS_CUSTOM_ITEMS = 'b93adeff-9bb8-4f23-a81d-96452a94fd9b'; +export const FOOTER = '27fc009d-3eec-43a9-b3a2-55531e721817';