The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update track-lead.test.ts
Kiran Kf2cc33043a59
diff --git a/apps/web/tests/tracks/track-lead.test.ts b/apps/web/tests/tracks/track-lead.test.tsindex 905a2015c3..1168ad651d 100644--- a/apps/web/tests/tracks/track-lead.test.ts+++ b/apps/web/tests/tracks/track-lead.test.ts@@ -40,13 +40,15 @@ const verifyCommission = async ({expectedEarnings: number;}) => {// Find the customer first- const { data: customer } = await http.get<Customer>({+ const { data: customers } = await http.get<Customer[]>({path: "/customers",query: {externalId: customerExternalId,},});+ const customer = customers[0];+// Find the commission for the customerconst { status, data: commissions } = await http.get<CommissionResponse[]>({path: "/commissions",@@ -99,14 +101,6 @@ describe("POST /track/lead", async () => {customer: customer1,clickId: trackedClickId,});-- await new Promise((resolve) => setTimeout(resolve, 2000));-- await verifyCommission({- http,- customerExternalId: customer1.externalId,- expectedEarnings: E2E_LEAD_REWARD.amount,- });});test("duplicate track lead request with same customerExternalId", async () => {