UNPKG

@ionic/core

Version:
21 lines (20 loc) 868 B
import { newE2EPage } from '@stencil/core/testing'; test('tabs: basic', async () => { const page = await newE2EPage({ url: '/src/components/tabs/test/basic?ionic:_testing=true' }); let compare = await page.compareScreenshot(); expect(compare).toMatchScreenshot(); const button2 = await page.find('.e2eTabTwoButton'); await button2.click(); compare = await page.compareScreenshot(`tab two`); expect(compare).toMatchScreenshot(); const button3 = await page.find('.e2eTabThreeButton'); await button3.click(); compare = await page.compareScreenshot(`tab three, disabled`); expect(compare).toMatchScreenshot(); const button4 = await page.find('.e2eTabFourButton'); await button4.click(); compare = await page.compareScreenshot(`tab four`); expect(compare).toMatchScreenshot(); });