From 01610beefce1aafd9a2400aa07094c8bdf734e85 Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Mon, 9 Sep 2024 15:01:18 +0100 Subject: [PATCH] add timeout --- src/components/address-input/autosuggest.address.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/address-input/autosuggest.address.spec.js b/src/components/address-input/autosuggest.address.spec.js index 4a36c94a2b..a124dd26ef 100644 --- a/src/components/address-input/autosuggest.address.spec.js +++ b/src/components/address-input/autosuggest.address.spec.js @@ -273,6 +273,7 @@ describe('script: address-input', () => { }); it('has expected suggestion entries', async () => { + await setTimeout(100); const suggestions = await page.$$eval('.ons-autosuggest__option', (nodes) => nodes.map((node) => node.textContent.trim())); expect(suggestions).toEqual(['196 College Road, Birmingham, B44 8HF', '196 College Road, Whitchurch, Cardiff, CF14 2NZ']); });