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 819e92b076..7b4645c278 100644 --- a/tests/e2e/specs/setup-mc/step-1-accounts.test.js +++ b/tests/e2e/specs/setup-mc/step-1-accounts.test.js @@ -61,6 +61,7 @@ test.describe( 'Set up accounts', () => { const wpAccountCard = setUpAccountsPage.getWPAccountCard(); await expect( wpAccountCard ).toBeEnabled(); await expect( wpAccountCard ).toContainText( 'WordPress.com' ); + await expect( wpAccountCard.getByRole( 'button' ) ).toBeEnabled(); const googleAccountCard = setUpAccountsPage.getGoogleAccountCard(); await expect( googleAccountCard.getByRole( 'button' ) ).toBeDisabled(); @@ -140,10 +141,6 @@ test.describe( 'Set up accounts', () => { ) ).toBeVisible(); - await expect( - page.getByRole( 'button', { name: 'Connect' } ).first() - ).toBeEnabled(); - const wpAccountCard = setUpAccountsPage.getWPAccountCard(); await expect( wpAccountCard ).not.toBeVisible(); } );