Skip to content

Commit

Permalink
Update test to work with WC latest & 7.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
allie500 committed Feb 3, 2025
1 parent 9ec962f commit 4443a72
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ describeif( shouldRunSubscriptionsTests && shouldRunActionSchedulerTests )(
const customerBillingConfig =
config.addresses[ 'subscriptions-customer' ].billing;

let subscriptionId: string;

test.beforeAll( async ( { browser }, { project } ) => {
const { shopperPage } = await getShopper(
browser,
Expand All @@ -48,10 +46,6 @@ describeif( shouldRunSubscriptionsTests && shouldRunActionSchedulerTests )(
await expect(
shopperPage.getByRole( 'heading', { name: 'Order received' } )
).toBeVisible();

subscriptionId = await shopperPage
.getByLabel( 'View subscription number' )
.innerText();
} );

test( 'should renew a subscription with action scheduler', async ( {
Expand Down Expand Up @@ -81,12 +75,8 @@ describeif( shouldRunSubscriptionsTests && shouldRunActionSchedulerTests )(
// Go to Subscriptions and verify the subscription renewal
await goToSubscriptions( merchantPage );

const numericSubscriptionId = subscriptionId.substring( 1 );

await expect(
merchantPage
.locator( `#order-${ numericSubscriptionId }` )
.getByRole( 'cell', { name: '2', exact: true } )
merchantPage.getByRole( 'cell', { name: '2', exact: true } )
).toBeVisible();
} );
}
Expand Down

0 comments on commit 4443a72

Please sign in to comment.