Skip to content

Commit c2f732e

Browse files
committed
test: promotions integ tests passing in browser
1 parent f6c2973 commit c2f732e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/spec/promotions-integ-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,14 @@ define(function (require, exports, module) {
446446

447447
describe("Security Tests", function () {
448448

449+
beforeEach(async function() {
450+
// Restore original fetch to ensure clean state between tests
451+
// This prevents fetch mocks from previous tests affecting security tests
452+
if (originalFetch && testWindow._test_pro_dlg_login_exports && testWindow._test_pro_dlg_login_exports.setFetchFn) {
453+
testWindow._test_pro_dlg_login_exports.setFetchFn(originalFetch);
454+
}
455+
});
456+
449457
it("should detect and prevent signature tampering attacks", async function () {
450458
// Setup: Create a valid trial first
451459
const validTrial = {

0 commit comments

Comments
 (0)