Improve test code

This commit is contained in:
Veljko 2021-03-05 12:45:16 +01:00
parent 7d8e5430ec
commit 4b12dfdeda
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ const runOrderSearchingTest = () => {
await clearAndFillInput('#_shipping_city', 'Buffalo');
await clearAndFillInput('#_shipping_postcode', '14201');
await page.waitFor(1000); // to avoid flakiness
await page.select('select[name="_shipping_state"]', 'NY');
await page.click('#select2-_shipping_state-container');
await page.waitForSelector('input.select2-search__field');
await selectOptionInSelect2('New York', 'input.select2-search__field');
// Save new order
await page.click('button.save_order');