test(input): fix input e2e (#16180)

This commit is contained in:
Adam Bradley
2018-11-01 11:48:16 -05:00
committed by GitHub
parent 28322379e4
commit 1935deb012
2 changed files with 8 additions and 1 deletions

View File

@@ -26,16 +26,22 @@ test('item: inputs', async () => {
// Set "null"
await page.click('#btnNullValue');
await page.waitFor(250);
compare = await page.compareScreenshot('should set null');
expect(compare).toMatchScreenshot();
// Set "empty"
await page.click('#btnEmptyValue');
await page.waitFor(250);
compare = await page.compareScreenshot('should set empty');
expect(compare).toMatchScreenshot();
// Set "empty"
await page.click('#btnEmptyValue');
await page.waitFor(250);
compare = await page.compareScreenshot('should set empty');
expect(compare).toMatchScreenshot();
});

View File

@@ -7,7 +7,8 @@ test('popover: basic', async () => {
await page.click('.e2eShowPopover');
const popover = await page.find('ion-popover');
expect(popover).not.toBeNull();
await popover.waitForVisible();
await page.waitFor(250);
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();