Skip to content

Commit

Permalink
load preview in live version (#28300)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoreras authored Apr 19, 2024
1 parent c7448ea commit 6f72f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});

Expand Down Expand Up @@ -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();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class DotDeviceSelectorSeoComponent implements OnInit {

this.previewUrl = `${frontEndUrl}${
frontEndUrl.indexOf('?') != -1 ? '&' : '?'
}disabledNavigateMode=true`;
}disabledNavigateMode=true&mode=LIVE`;
}
}
}

0 comments on commit 6f72f16

Please sign in to comment.