From 6f72f1635fbe7623d07e21319889255a77fd84a1 Mon Sep 17 00:00:00 2001 From: Humberto Morera <31667212+hmoreras@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:15:08 -0600 Subject: [PATCH] load preview in live version (#28300) --- .../dot-device-selector-seo.component.spec.ts | 5 ++++- .../dot-device-selector-seo.component.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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`; } } }