Skip to content

Commit f03c444

Browse files
committed
Update sale-reward.test.ts
1 parent 7ce5d37 commit f03c444

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

apps/web/tests/rewards/sale-reward.test.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -51,33 +51,6 @@ describe("Sale rewards with conditions", async () => {
5151

5252
describe.sequential("sequential track/sale tests", () => {
5353
test("when {Sale} {Type} is {new} vs {recurring}", async () => {
54-
const clickResponse = await http.post<{ clickId: string }>({
55-
path: "/track/click",
56-
headers: E2E_TRACK_CLICK_HEADERS,
57-
body: {
58-
domain: "getacme.link",
59-
key: "marvin",
60-
},
61-
});
62-
expect(clickResponse.status).toEqual(200);
63-
const trackedClickId = clickResponse.data.clickId;
64-
expect(trackedClickId).toStrictEqual(expect.any(String));
65-
66-
const trackLeadResponse = await http.post<TrackLeadResponse>({
67-
path: "/track/lead",
68-
body: {
69-
clickId: trackedClickId,
70-
eventName: "E2E lead for new/recurring sale test",
71-
customerExternalId: newCustomer.externalId,
72-
customerName: newCustomer.name,
73-
customerEmail: newCustomer.email,
74-
customerAvatar: newCustomer.avatar,
75-
mode: "wait",
76-
},
77-
});
78-
79-
expect(trackLeadResponse.status).toEqual(200);
80-
8154
const sale = randomSale("E2E first sale");
8255

8356
const trackSaleResponse = await http.post<TrackSaleResponse>({

0 commit comments

Comments
 (0)