From bc69b6ad3e6e0da94370e0a49695f9848e33ee7a Mon Sep 17 00:00:00 2001 From: shashwata Date: Fri, 13 Dec 2024 14:57:37 +0600 Subject: [PATCH] Fix a rfq tests --- tests/pw/tests/e2e/requestForQuotes.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/pw/tests/e2e/requestForQuotes.spec.ts b/tests/pw/tests/e2e/requestForQuotes.spec.ts index e097065ec1..e9f558b88b 100644 --- a/tests/pw/tests/e2e/requestForQuotes.spec.ts +++ b/tests/pw/tests/e2e/requestForQuotes.spec.ts @@ -136,7 +136,6 @@ test.describe('Request for quotation test customer', () => { customer = new RequestForQuotationsPage(cPage); apiUtils = new ApiUtils(await request.newContext()); - [, productId[0], productName] = await apiUtils.createProduct(payloads.createProduct(), payloads.vendorAuth); const [, quoteRuleId] = await apiUtils.createQuoteRule({ ...payloads.createQuoteRule(), product_ids: productId }, payloads.adminAuth); await dbUtils.updateQuoteRuleContent(quoteRuleId, { switches: { product_switch: 'true' } }); // todo: remove after api fix @@ -166,7 +165,14 @@ test.describe('Request for quotation test customer', () => { await customer.customerUpdateRequestedQuote(quoteId, { ...data.requestForQuotation.customerQuoteProduct, productName: productName }); }); - test('customer can pay for order converted from quote request', { tag: ['@pro', '@customer'] }, async () => { + test.only('customer can pay for order converted from quote request', { tag: ['@pro', '@customer'] }, async () => { + test.slow(); + // todo: remove payment gateway disable methods when this issue is fixed https://github.com/getdokan/dokan-pro/issues/4015 + await apiUtils.updatePaymentGateway('dokan-stripe-connect', { ...payloads.stripeConnect, enabled: false }, payloads.adminAuth); + await apiUtils.updatePaymentGateway('dokan_paypal_marketplace', { ...payloads.payPal, enabled: false }, payloads.adminAuth); + await apiUtils.updatePaymentGateway('dokan_mangopay', { ...payloads.mangoPay, enabled: false }, payloads.adminAuth); + await apiUtils.updatePaymentGateway('dokan_razorpay', { ...payloads.razorpay, enabled: false }, payloads.adminAuth); + await apiUtils.updatePaymentGateway('dokan_stripe_express', { ...payloads.stripeExpress, enabled: false }, payloads.adminAuth); await apiUtils.convertQuoteToOrder(quoteId, payloads.adminAuth); await customer.payConvertedQuote(quoteId); });