Skip to content

Commit

Permalink
fix flakey macro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Oct 31, 2024
1 parent 26278a2 commit 0e0b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/address-input/autosuggest.address.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe('script: address-input', () => {
await page.$eval('.ons-js-autosuggest-input', (node) => (node.value = '196 coll'));
await page.type('.ons-js-autosuggest-input', 'e');

expect(apiFaker.getRequestCount('/addresses/eq?input=196%20colle&limit=10')).toBe(1);
expect(await apiFaker.getRequestCount('/addresses/eq?input=196%20colle&limit=10')).toBe(1);
});

describe('when the value is a full postcode', () => {
Expand Down

0 comments on commit 0e0b85a

Please sign in to comment.