Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for redirect when renderDecisions:false #1057

Merged
merged 3 commits into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
});
Loading