Skip to content

Commit

Permalink
Fix e2e tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Sep 27, 2024
1 parent 03b1167 commit 7432760
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/src/components/paid-ads/validateCampaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const validateCampaign = ( values, opts ) => {
amount: sprintf(
/* translators: %1$s: minimum daily budget */
__(
'Please make sure daily average cost is at least %s.',
'Please make sure daily average cost is at least %s',
'google-listings-and-ads'
),
formatAmount( minAmount )
Expand Down
2 changes: 1 addition & 1 deletion js/src/components/paid-ads/validateCampaign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe( 'validateCampaign', () => {
const errors = validateCampaign( values, opts );

expect( errors ).toHaveProperty( 'amount' );
expect( errors.amount ).toContain( 'is greater than Rs 30' );
expect( errors.amount ).toContain( 'is at least Rs 30' );
} );

it( 'When a budget is provided and the amount is same than the minimum, should pass', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ test.describe( 'Set up Ads account', () => {

await expect(
page.getByText(
'Please make sure daily average cost is greater than €4.00.'
'Please make sure daily average cost is at least €4.50'
)
).toBeVisible();
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/setup-mc/step-4-complete-campaign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ test.describe( 'Complete your campaign', () => {
.locator( '.components-base-control__help' )
.textContent();
await expect( error ).toBe(
'Please make sure daily average cost is greater than NT$29.00.'
'Please make sure daily average cost is at least NT$30.00'
);
} );

Expand Down

0 comments on commit 7432760

Please sign in to comment.