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