diff --git a/core/src/components/action-sheet/test/alert-from-action-sheet/e2e.ts b/core/src/components/action-sheet/test/alert-from-action-sheet/e2e.ts index aa122eccca..d4d1f25950 100644 --- a/core/src/components/action-sheet/test/alert-from-action-sheet/e2e.ts +++ b/core/src/components/action-sheet/test/alert-from-action-sheet/e2e.ts @@ -19,6 +19,7 @@ it('action-sheet: alertFromActionSheet', async () => { const alert = await page.find('ion-alert'); await alert.waitForVisible(); + await page.waitFor(100); compare = await page.compareScreenshot(`alert open`); expect(compare).toMatchScreenshot(); diff --git a/core/src/components/alert/test/standalone/e2e.ts b/core/src/components/alert/test/standalone/e2e.ts index 1fc3af63cc..af43da4ea9 100644 --- a/core/src/components/alert/test/standalone/e2e.ts +++ b/core/src/components/alert/test/standalone/e2e.ts @@ -21,6 +21,7 @@ it('alert: standalone', async () => { const alert = await page.find('ion-alert'); expect(alert).not.toBe(null); await alert.waitForVisible(); + await page.waitFor(100); const compare = await page.compareScreenshot(message); expect(compare).toMatchScreenshot(); diff --git a/core/src/components/app/app.tsx b/core/src/components/app/app.tsx index 8016eb4177..8e9031522e 100644 --- a/core/src/components/app/app.tsx +++ b/core/src/components/app/app.tsx @@ -20,7 +20,10 @@ export class App implements ComponentInterface { rIC(() => { const { win, config, queue } = this; - importTapClick(win); + if (!config.getBoolean('_testing')) { + importTapClick(win); + } + importInputShims(win, config); importStatusTap(win, config, queue); importHardwareBackButton(win, config); diff --git a/core/src/components/datetime/test/basic/e2e.ts b/core/src/components/datetime/test/basic/e2e.ts index c5e73abc29..6dce7cba73 100644 --- a/core/src/components/datetime/test/basic/e2e.ts +++ b/core/src/components/datetime/test/basic/e2e.ts @@ -13,6 +13,7 @@ it('datetime: basic', async () => { const picker = await page.find('ion-picker'); await picker.waitForVisible(); + await page.waitFor(100); compare = await page.compareScreenshot('should open custom picker'); expect(compare).toMatchScreenshot(); diff --git a/core/src/components/loading/test/standalone/e2e.ts b/core/src/components/loading/test/standalone/e2e.ts index bb8bc654f2..91719f39e0 100644 --- a/core/src/components/loading/test/standalone/e2e.ts +++ b/core/src/components/loading/test/standalone/e2e.ts @@ -10,6 +10,7 @@ it('loading: standalone', async () => { expect(loading).not.toBeNull(); await loading.waitForVisible(); + await page.waitFor(500); const compare = await page.compareScreenshot(); expect(compare).toMatchScreenshot(); diff --git a/core/src/components/loading/test/standalone/index.html b/core/src/components/loading/test/standalone/index.html index ffcb7ba146..867617bb4f 100644 --- a/core/src/components/loading/test/standalone/index.html +++ b/core/src/components/loading/test/standalone/index.html @@ -39,7 +39,7 @@ await loadingController.componentOnReady(); const loadingElement = await loadingController.create({ message: 'Hellooo', - duration: 2000 + duration: 5000 }); return await loadingElement.present(); } diff --git a/core/src/components/popover/test/standalone/e2e.ts b/core/src/components/popover/test/standalone/e2e.ts index 224c6e1886..5000a9bc46 100644 --- a/core/src/components/popover/test/standalone/e2e.ts +++ b/core/src/components/popover/test/standalone/e2e.ts @@ -9,6 +9,9 @@ it('popover: standalone', async () => { const popover = await page.find('ion-popover'); expect(popover).not.toBeNull(); + await popover.waitForVisible(); + await page.waitFor(500); + const compare = await page.compareScreenshot(); expect(compare).toMatchScreenshot(); }); diff --git a/core/src/components/select/test/single-value/e2e.ts b/core/src/components/select/test/single-value/e2e.ts index 3e818e0f78..508ddab01d 100644 --- a/core/src/components/select/test/single-value/e2e.ts +++ b/core/src/components/select/test/single-value/e2e.ts @@ -13,6 +13,7 @@ it('select: single-value', async () => { const alert = await page.find('ion-alert'); await alert.waitForVisible(); + await page.waitFor(100); compare = await page.compareScreenshot('should open gender single select'); expect(compare).toMatchScreenshot(); diff --git a/core/src/components/slides/test/basic/e2e.ts b/core/src/components/slides/test/basic/e2e.ts index 9b8ef0c922..9012dd2e75 100644 --- a/core/src/components/slides/test/basic/e2e.ts +++ b/core/src/components/slides/test/basic/e2e.ts @@ -5,6 +5,8 @@ it('slides: basic', async () => { url: '/src/components/slides/test/basic?ionic:_testing=true' }); + await page.waitFor(500); + const compare = await page.compareScreenshot(); expect(compare).toMatchScreenshot(); }); diff --git a/core/src/components/slides/test/basic/index.html b/core/src/components/slides/test/basic/index.html index 1ccfc9fa5a..35e29e7721 100644 --- a/core/src/components/slides/test/basic/index.html +++ b/core/src/components/slides/test/basic/index.html @@ -22,7 +22,7 @@ - +

Slide 1

diff --git a/core/src/components/slides/test/standalone/e2e.ts b/core/src/components/slides/test/standalone/e2e.ts index 2b9f2a2880..b7175160ce 100644 --- a/core/src/components/slides/test/standalone/e2e.ts +++ b/core/src/components/slides/test/standalone/e2e.ts @@ -5,6 +5,8 @@ it('slides: standalone', async () => { url: '/src/components/slides/test/standalone?ionic:_testing=true' }); + await page.waitFor(500); + const compare = await page.compareScreenshot(); expect(compare).toMatchScreenshot(); }); diff --git a/core/src/components/slides/test/standalone/index.html b/core/src/components/slides/test/standalone/index.html index 555002bb65..8a51dac924 100644 --- a/core/src/components/slides/test/standalone/index.html +++ b/core/src/components/slides/test/standalone/index.html @@ -13,7 +13,7 @@ - +

Slide 1