From ecd25fc488aabbee612fae2a3c661a256e2c58b8 Mon Sep 17 00:00:00 2001 From: Darshan Sawardekar Date: Mon, 19 Aug 2024 18:24:14 +0530 Subject: [PATCH] Updates e2e tests per CR feedback --- tests/e2e/specs/setup-mc/step-1-accounts.test.js | 5 +---- 1 file changed, 1 insertion(+), 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 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(); } );