Skip to content

Commit

Permalink
Merge pull request #1057 from adobe/fixRedirects
Browse files Browse the repository at this point in the history
Add test for redirect when renderDecisions:false
  • Loading branch information
jonsnyder authored Oct 19, 2023
2 parents bf813fa + 2408ea9 commit 2e36762
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/functional/specs/Personalization/C205528.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,12 @@ test("Test C205528: A redirect offer should redirect the page to the URL in the
await t.expect(redirectLogger.count(() => true)).eql(1);
}
});

test("Test C205528: A redirect offer should not redirect if renderDecisions is false", async () => {
const alloy = createAlloyProxy();
await alloy.configure(config);
await alloy.sendEvent({});
// wait 1 second for the redirect to happen
await new Promise(resolve => setTimeout(resolve, 1000));
await t.expect(redirectLogger.count(() => true)).eql(0);
});

0 comments on commit 2e36762

Please sign in to comment.