Skip to content

Commit

Permalink
Fix e2e test failures (#85578)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzver authored and pull[bot] committed Jan 17, 2024
1 parent fd46574 commit 5183244
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/e2e/specs/domain-upsell/domain-upsell__sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ import {
RestAPIClient,
} from '@automattic/calypso-e2e';
import { Page, Browser } from 'playwright';
import { getNewPlanName } from '../shared';

declare const browser: Browser;

describe( DataHelper.createSuiteTitle( 'Sidebar: Domain upsell' ), function () {
const planName = 'Premium';
const newPlanName = getNewPlanName( planName );
let domainSearchComponent: DomainSearchComponent;
let cartCheckoutPage: CartCheckoutPage;
let plansPage: PlansPage;
Expand Down Expand Up @@ -76,13 +78,13 @@ describe( DataHelper.createSuiteTitle( 'Sidebar: Domain upsell' ), function () {
plansPage = new PlansPage( page );
} );

it( `Click button to upgrade to WordPress.com ${ planName }`, async function () {
await plansPage.selectPlan( 'Premium' );
it( `Click button to upgrade to WordPress.com ${ newPlanName }`, async function () {
await plansPage.selectPlan( planName );
} );

it( `WordPress.com ${ planName } is added to cart`, async function () {
it( `WordPress.com ${ newPlanName } is added to cart`, async function () {
cartCheckoutPage = new CartCheckoutPage( page );
await cartCheckoutPage.validateCartItem( `WordPress.com ${ planName }` );
await cartCheckoutPage.validateCartItem( `WordPress.com ${ newPlanName }` );
} );

it( 'See secure payment', async function () {
Expand Down

0 comments on commit 5183244

Please sign in to comment.