1test("fruit dropdown becomes enabled when food type fruit is selected", async () => {
2 await page.select('[data-testid="food"]', "fruit"); // this makes a selection in the drop down and fires a request
3
4 // I should wait for request to finish before doing this
5 const isFruitDropdownDisabled = await page.$eval(
6 '[data-testid="fruit"]',
7 element => element.disabled
8 );
9
10 expect(isFruitDropdownDisabled).toBe(false);
11}, 16000);
12