UNPKG

@ionic/core

Version:
28 lines (27 loc) 972 B
import { newE2EPage } from '@stencil/core/testing'; test.skip('menu: basic', async () => { const page = await newE2EPage({ url: '/src/components/menu/test/basic?ionic:_testing=true' }); const start = await page.find('ion-menu[side="start"]'); expect(start).toHaveClasses([ 'menu-type-overlay', 'menu-side-start' ]); await start.callMethod('open'); await start.waitForVisible(); await page.waitFor(250); expect(await page.compareScreenshot('start menu')).toMatchScreenshot(); await start.callMethod('close'); await page.waitFor(250); const end = await page.find('ion-menu[side="end"]'); expect(end).toHaveClasses([ 'menu-type-push', 'menu-enabled', 'menu-side-end' ]); await end.callMethod('open'); await end.waitForVisible(); await page.waitFor(250); expect(await page.compareScreenshot('end menu')).toMatchScreenshot(); });