From e7fa3c1eb0aa3e675c5cf2f92c19c64b28b361ef Mon Sep 17 00:00:00 2001 From: niranjan-uma-shankar Date: Fri, 31 May 2024 17:53:34 +0530 Subject: [PATCH] Revert "Try fix flaky E2E test (#90860)" (#91336) This reverts commit e7151f4823e4b7298671f88eec76c9ddd5c7a836. --- ...ecycle__signup-onboarding-launch-cancel.ts | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/test/e2e/specs/onboarding/lifecycle__signup-onboarding-launch-cancel.ts b/test/e2e/specs/onboarding/lifecycle__signup-onboarding-launch-cancel.ts index 7d5ff95c30247..0f290d318e829 100644 --- a/test/e2e/specs/onboarding/lifecycle__signup-onboarding-launch-cancel.ts +++ b/test/e2e/specs/onboarding/lifecycle__signup-onboarding-launch-cancel.ts @@ -84,16 +84,7 @@ describe( 'Lifecyle: Signup, onboard, launch and cancel subscription', function it( 'See secure payment', async function () { cartCheckoutPage = new CartCheckoutPage( page ); - try { - // Check for either the "Beginner" or "Starter" plan while the name change experiment is in progress. - await Promise.any( [ - cartCheckoutPage.validateCartItem( 'WordPress.com Beginner' ), - cartCheckoutPage.validateCartItem( `WordPress.com ${ newPlanName }` ), - ] ); - } catch ( error ) { - console.log( `Neither "Beginner" or "Starter" were found on the page.` ); - throw error; - } + await cartCheckoutPage.validateCartItem( `WordPress.com ${ newPlanName }` ); } ); it( 'Prices are shown in GBP', async function () { @@ -240,23 +231,11 @@ describe( 'Lifecyle: Signup, onboard, launch and cancel subscription', function it( 'View details of purchased plan', async function () { purchasesPage = new PurchasesPage( page ); - try { - // Check for either the "Beginner" or "Starter" plan while the name change experiment is in progress. - await Promise.any( [ - purchasesPage.clickOnPurchase( - 'WordPress.com Beginner', - newSiteDetails.blog_details.site_slug - ), - purchasesPage.clickOnPurchase( - `WordPress.com ${ newPlanName }`, - newSiteDetails.blog_details.site_slug - ), - ] ); - await purchasesPage.purchaseAction( 'Cancel plan' ); - } catch ( error ) { - console.log( `Neither "Beginner" nor "Starter" plan was found.` ); - throw error; - } + await purchasesPage.clickOnPurchase( + `WordPress.com ${ newPlanName }`, + newSiteDetails.blog_details.site_slug + ); + await purchasesPage.purchaseAction( 'Cancel plan' ); } ); it( 'Cancel plan renewal', async function () {