Skip to content

Commit

Permalink
Switch toBeEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkamp committed Aug 3, 2023
1 parent f0ffddd commit b7a5447
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/specs/setup-mc/step-1-accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ test.describe( 'Merchant who is getting started', () => {

expect(
page.getByRole( 'button' ).getByText( 'Connect' ).first()
).not.toBeDisabled();
).toBeEnabled();
} );

test( 'after clicking the "Connect your WordPress.com account" button, should send an API request to connect Jetpack, and redirect to the returned URL', async ( {
page,
baseURL,
} ) => {
// Mock Jetpack as connected
// Mock Jetpack connect
await page.route( /\/wc\/gla\/jetpack\/connect\b/, ( route ) =>
route.fulfill( {
content: 'application/json',
Expand Down Expand Up @@ -109,14 +109,14 @@ test.describe( 'Merchant with Jetpack connected & Google not connected', () => {

expect(
page.getByRole( 'button' ).getByText( 'Connect' ).first()
).not.toBeDisabled();
).toBeEnabled();
} );

test( 'after clicking the "Connect your Google account" button should send an API request to connect Google account, and redirect to the returned URL', async ( {
page,
baseURL,
} ) => {
// Mock google as connected.
// Mock google connect.
await page.route( /\/wc\/gla\/google\/connect\b/, ( route ) =>
route.fulfill( {
content: 'application/json',
Expand Down

0 comments on commit b7a5447

Please sign in to comment.