From 801c6c9233c8bfd63edb77f1f983f049198f9af8 Mon Sep 17 00:00:00 2001 From: asvinb Date: Wed, 6 Nov 2024 17:17:44 +0400 Subject: [PATCH] Revert changes. --- .../specs/setup-mc/step-1-accounts.test.js | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 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 c2b24e5e2c..641bfce680 100644 --- a/tests/e2e/specs/setup-mc/step-1-accounts.test.js +++ b/tests/e2e/specs/setup-mc/step-1-accounts.test.js @@ -212,34 +212,34 @@ test.describe( 'Set up accounts', () => { expect( page.url() ).toMatch( baseURL + 'google_auth' ); } ); - // test( 'should create merchant center and ads account if does not exist for the user', async () => { - // await setUpAccountsPage.mockJetpackConnected(); - // await setUpAccountsPage.mockGoogleConnected(); - - // await setUpAccountsPage.fulfillAdsAccounts( [ { id: 1 } ] ); - // await setUpAccountsPage.mockMCHasAccounts(); - // await setUpAccountsPage.mockAdsAccountIncomplete(); - // await setUpAccountsPage.mockMCConnected(); - - // const once = setUpAccountsPage.fulfillTimes( 1 ); - - // await once.mockAdsHasNoAccounts(); - // await once.mockMCHasNoAccounts(); - // await once.mockAdsAccountDisconnected(); - // await once.mockMCNotConnected(); - - // await setUpAccountsPage.goto(); - // const googleAccountCard = setUpAccountsPage.getGoogleAccountCard(); - - // await expect( - // googleAccountCard.getByText( - // 'You don’t have Merchant Center nor Google Ads accounts, so we’re creating them for you.', - // { - // exact: true, - // } - // ) - // ).toBeVisible(); - // } ); + test( 'should create merchant center and ads account if does not exist for the user', async () => { + await setUpAccountsPage.mockJetpackConnected(); + await setUpAccountsPage.mockGoogleConnected(); + + await setUpAccountsPage.fulfillAdsAccounts( [ { id: 1 } ] ); + await setUpAccountsPage.mockMCHasAccounts(); + await setUpAccountsPage.mockAdsAccountIncomplete(); + await setUpAccountsPage.mockMCConnected(); + + const once = setUpAccountsPage.fulfillTimes( 1 ); + + await once.mockAdsHasNoAccounts(); + await once.mockMCHasNoAccounts(); + await once.mockAdsAccountDisconnected(); + await once.mockMCNotConnected(); + + await setUpAccountsPage.goto(); + const googleAccountCard = setUpAccountsPage.getGoogleAccountCard(); + + await expect( + googleAccountCard.getByText( + 'You don’t have Merchant Center nor Google Ads accounts, so we’re creating them for you.', + { + exact: true, + } + ) + ).toBeVisible(); + } ); test.describe( 'After connecting Google account', () => { test.beforeEach( async () => {