From b7a544759875acfd939c4faf164bae2c4d023ec0 Mon Sep 17 00:00:00 2001 From: mikkamp Date: Thu, 3 Aug 2023 14:48:47 +0100 Subject: [PATCH] Switch toBeEnabled --- tests/e2e/specs/setup-mc/step-1-accounts.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/specs/setup-mc/step-1-accounts.test.js b/tests/e2e/specs/setup-mc/step-1-accounts.test.js index 9345bde2ad..a1370fcacd 100644 --- a/tests/e2e/specs/setup-mc/step-1-accounts.test.js +++ b/tests/e2e/specs/setup-mc/step-1-accounts.test.js @@ -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', @@ -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',