diff --git a/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/seo/components/dot-edit-page-state-controller-seo/dot-edit-page-state-controller-seo.component.spec.ts b/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/seo/components/dot-edit-page-state-controller-seo/dot-edit-page-state-controller-seo.component.spec.ts index 46e8b59fd3c4..8ae9bfa5a245 100644 --- a/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/seo/components/dot-edit-page-state-controller-seo/dot-edit-page-state-controller-seo.component.spec.ts +++ b/core-web/apps/dotcms-ui/src/app/portlets/dot-edit-page/seo/components/dot-edit-page-state-controller-seo/dot-edit-page-state-controller-seo.component.spec.ts @@ -489,7 +489,7 @@ describe('DotEditPageStateControllerSeoComponent', () => { expect(dotPageStateService.setSeoMedia).toHaveBeenCalledWith('Google'); }); - it('should call changeSeoMedia event', async () => { + it('should call selected event', async () => { spyOn(dotPageStateService, 'setDevice'); const dotSelector = de.query(By.css('[data-testId="dot-device-selector"]')); const event = { diff --git a/core-web/libs/utils-testing/src/lib/dot-page-state.service.mock.ts b/core-web/libs/utils-testing/src/lib/dot-page-state.service.mock.ts index 965bb9c21b75..d7794bf9fbb4 100644 --- a/core-web/libs/utils-testing/src/lib/dot-page-state.service.mock.ts +++ b/core-web/libs/utils-testing/src/lib/dot-page-state.service.mock.ts @@ -32,4 +32,8 @@ export class DotPageStateServiceMock { setPersona(_persona: DotPersona): void { /* */ } + + setSeoMedia(_seoMedia: string): void { + /* */ + } }