Skip to content

Commit

Permalink
✅(frontend) fix SaleTunnel test
Browse files Browse the repository at this point in the history
We have a wanky test in SaleTunnel component, let's fix it.
  • Loading branch information
rlecellier committed May 16, 2024
1 parent e5788ea commit f4c5d06
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ describe('SaleTunnel', () => {
await changeSelect($countryField, countries.getName(address?.country, 'en')!, user);
await user.click($submitButton);

within(billingAddressInput).getByText(getAddressLabel(address));
expect(
await within(billingAddressInput).findByText(getAddressLabel(address)),
).toBeInTheDocument();

/**
* Make sure no credit card is selected.
Expand Down

0 comments on commit f4c5d06

Please sign in to comment.