Skip to content

Commit

Permalink
MWPW-164391-test info
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonja Popovic committed Jan 9, 2025
1 parent 49e029c commit 6e391a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/scripts/rewriteLinks.jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ describe('Test rewrite links', () => {
expect(links[1].href).toBe('https://partners.stage.adobe.com/');
});

test('should not update partners prod domain and cbc prod domain when on stage', () => {
test('should not update partners prod domain and cbc prod domain when on prod', () => {
getConfig.mockReturnValue({ env: { name: 'prod' } });
rewriteLinks();
const links = document.querySelectorAll('a');
expect(links[1].href).toBe('https://partners.adobe.com/');
expect(links[3].href).toBe('https://cbconnection.adobe.com/bin/fusion/modalImsLogin?resource=%2Fen%2Fnews%2Fenablement-news-partner-lock');
});
test('should update partners prod domain and cbc prod domain but not login path when not logged in', () => {
test('should update partners prod domain and cbc prod domain but not login path when not logged in when on stage', () => {
partnerIsSignedIn.mockReturnValue(null);

rewriteLinks();
Expand Down

0 comments on commit 6e391a3

Please sign in to comment.