Skip to content

Commit

Permalink
Revert "Try fix flaky E2E test (#90860)" (#91336)
Browse files Browse the repository at this point in the history
This reverts commit e7151f4.
  • Loading branch information
niranjan-uma-shankar authored May 31, 2024
1 parent 13f15c3 commit e7fa3c1
Showing 1 changed file with 6 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit e7fa3c1

Please sign in to comment.