fix tests

This commit is contained in:
Bilal Godil 2025-10-17 15:36:22 -07:00
parent 20c9691d4f
commit 1b5601c991
2 changed files with 15 additions and 0 deletions

View File

@ -41,6 +41,8 @@ it("should allow valid code and return offer data", async ({ expect }) => {
"charges_enabled": false,
"conflicting_products": [],
"product": {
"client_metadata": null,
"client_read_only_metadata": null,
"customer_type": "user",
"display_name": "Test Product",
"included_items": {},
@ -53,6 +55,7 @@ it("should allow valid code and return offer data", async ({ expect }) => {
],
},
},
"server_metadata": null,
"server_only": false,
"stackable": false,
},
@ -221,6 +224,8 @@ it("should include conflicting_group_offers when switching within the same group
},
],
"product": {
"client_metadata": null,
"client_read_only_metadata": null,
"customer_type": "user",
"display_name": "Offer B",
"included_items": {},
@ -233,6 +238,7 @@ it("should include conflicting_group_offers when switching within the same group
],
},
},
"server_metadata": null,
"server_only": false,
"stackable": false,
},

View File

@ -41,6 +41,8 @@ it("should allow valid code and return product data", async ({ expect }) => {
"charges_enabled": false,
"conflicting_products": [],
"product": {
"client_metadata": null,
"client_read_only_metadata": null,
"customer_type": "user",
"display_name": "Test Product",
"included_items": {},
@ -53,6 +55,7 @@ it("should allow valid code and return product data", async ({ expect }) => {
],
},
},
"server_metadata": null,
"server_only": false,
"stackable": false,
},
@ -221,6 +224,8 @@ it("should include conflicting_products when switching within the same group", a
},
],
"product": {
"client_metadata": null,
"client_read_only_metadata": null,
"customer_type": "user",
"display_name": "Product B",
"included_items": {},
@ -233,6 +238,7 @@ it("should include conflicting_products when switching within the same group", a
],
},
},
"server_metadata": null,
"server_only": false,
"stackable": false,
},
@ -313,6 +319,8 @@ it("should reject untrusted return_url and accept trusted return_url", async ({
"charges_enabled": false,
"conflicting_products": [],
"product": {
"client_metadata": null,
"client_read_only_metadata": null,
"customer_type": "user",
"display_name": "Test Product",
"included_items": {},
@ -325,6 +333,7 @@ it("should reject untrusted return_url and accept trusted return_url", async ({
],
},
},
"server_metadata": null,
"server_only": false,
"stackable": false,
},