mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
fix(test): avoid more race conditions
This commit is contained in:
@ -9,6 +9,7 @@ test('datetime: basic', async () => {
|
||||
expect(compare).toMatchScreenshot();
|
||||
|
||||
const datetime = await page.find('#customPickerOptions');
|
||||
await datetime.waitForVisible();
|
||||
await datetime.click();
|
||||
|
||||
const picker = await page.find('ion-picker');
|
||||
|
||||
@ -18,7 +18,7 @@ test('item: inputs', async () => {
|
||||
const disableToggle = await page.find('#btnDisabled');
|
||||
await disableToggle.waitForVisible();
|
||||
await disableToggle.click();
|
||||
await page.waitFor(100);
|
||||
await page.waitFor(300);
|
||||
|
||||
// check form
|
||||
await page.click('#submit');
|
||||
|
||||
@ -19,7 +19,9 @@ export async function testToast(
|
||||
const button = await page.find(selector);
|
||||
await button.waitForVisible();
|
||||
await button.click();
|
||||
|
||||
|
||||
await page.waitFor(250);
|
||||
|
||||
let toast = await page.find('ion-toast');
|
||||
await toast.waitForVisible();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user