Skip to content

Commit

Permalink
Fix: E2E tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitrox committed Oct 18, 2024
1 parent fbb199f commit c20fbea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ConnectAdsBody = ( {
accounts={ isConnected ? connectedAccount : accounts }
value={ value }
onChange={ setValue }
autoSelectFirstOption={ isConnected || accounts.length === 1 }
autoSelectFirstOption={ true }
/>
{ isLoading ? (
<LoadingLabel
Expand Down
10 changes: 8 additions & 2 deletions tests/e2e/specs/setup-mc/step-1-accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,14 @@ test.describe( 'Set up accounts', () => {
).toBeVisible();

await expect(
googleAdsAccountCard.getByRole( 'button', { name: 'Connect' } )
).not.toBeVisible();
googleAdsAccountCard.getByText( 'Connected' )
).toBeVisible();

await expect(
googleAdsAccountCard.getByText(
'Or, connect to a different Google Ads account'
)
).toBeVisible();
} );
} );

Expand Down

0 comments on commit c20fbea

Please sign in to comment.