fix: Failing tests (#13091)

* Stripe needs month starting from 1 and not 0

* Fix Routing form failure

* Fix failing test
This commit is contained in:
Hariom Balhara authored and GitHub committed 2024-01-08 14:23:41 +00:00
1 parent 15b0e0c5bd
commit e2ef9dd710
3 files changed
+17 -8

No files matched your search

+1 -1
View File
@@ -751,7 +751,7 @@ export async function makePaymentUsingStripe(page: Page) {
const stripeFrame = stripeElement.frameLocator("iframe").first();
await stripeFrame.locator('[name="number"]').fill("4242 4242 4242 4242");
const now = new Date();
await stripeFrame.locator('[name="expiry"]').fill(`${now.getMonth()} / ${now.getFullYear() + 1}`);
await stripeFrame.locator('[name="expiry"]').fill(`${now.getMonth() + 1} / ${now.getFullYear() + 1}`);
await stripeFrame.locator('[name="cvc"]').fill("111");
const postcalCodeIsVisible = await stripeFrame.locator('[name="postalCode"]').isVisible();
if (postcalCodeIsVisible) {