Improve test code
This commit is contained in:
parent
7d8e5430ec
commit
4b12dfdeda
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue