Skip to content

Commit

Permalink
Revert changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Nov 6, 2024
1 parent b42286d commit 801c6c9
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tests/e2e/specs/setup-mc/step-1-accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 801c6c9

Please sign in to comment.