diff --git a/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.spec.ts b/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.spec.ts index ba8bf06d4d20..f3b0b6aba3e7 100644 --- a/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.spec.ts +++ b/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.spec.ts @@ -173,7 +173,7 @@ describe('DotDeviceSelectorSeoComponent', () => { By.css('[data-testId="dot-device-selector-link"]') ); expect(addContent.nativeElement.href).toContain( - '/an/url/test?language_id=1&disabledNavigateMode=true' + '/an/url/test?language_id=1&disabledNavigateMode=true&mode=LIVE' ); }); @@ -210,6 +210,9 @@ describe('DotDeviceSelectorSeoComponent', () => { const mediaTiles = de.query(By.css('[data-testId="social-media-tiles"]')); expect(link).not.toBeNull(); + expect(link.nativeElement.href).toContain( + '/an/url/test?language_id=1&disabledNavigateMode=true&mode=LIVE' + ); expect(mediaTiles).toBeNull(); }); }); diff --git a/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.ts b/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.ts index ce528dcd7808..70ed9ba74532 100644 --- a/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.ts +++ b/core-web/libs/portlets/edit-ema/ui/src/lib/dot-device-selector-seo/dot-device-selector-seo.component.ts @@ -207,7 +207,7 @@ export class DotDeviceSelectorSeoComponent implements OnInit { this.previewUrl = `${frontEndUrl}${ frontEndUrl.indexOf('?') != -1 ? '&' : '?' - }disabledNavigateMode=true`; + }disabledNavigateMode=true&mode=LIVE`; } } }