diff --git a/core/src/components/tabs/test/basic/e2e.js b/core/src/components/tabs/test/basic/e2e.js index bc43ff57bb..b6c656dc2d 100644 --- a/core/src/components/tabs/test/basic/e2e.js +++ b/core/src/components/tabs/test/basic/e2e.js @@ -1,34 +1,34 @@ -// 'use strict'; +'use strict'; -// const { register, Page, platforms } = require('../../../../../scripts/e2e'); -// const { getElement, waitAndGetElementById, waitForTransition } = require('../../../../../scripts/e2e/utils'); +const { register, Page, platforms } = require('../../../../../scripts/e2e'); +const { getElement, waitAndGetElementById, waitForTransition } = require('../../../../../scripts/e2e/utils'); -// class E2ETestPage extends Page { -// constructor(driver, platform) { -// super(driver, `http://localhost:3333/src/components/tabs/test/basic?ionic:mode=${platform}`); -// } -// } +class E2ETestPage extends Page { + constructor(driver, platform) { + super(driver, `http://localhost:3333/src/components/tabs/test/basic?ionic:mode=${platform}`); + } +} -// platforms.forEach(platform => { -// describe('tabs/basic', () => { -// register('should init', driver => { -// const page = new E2ETestPage(driver, platform); -// return page.navigate(); -// }); +platforms.forEach(platform => { + describe('tabs/basic', () => { + register('should init', driver => { + const page = new E2ETestPage(driver, platform); + return page.navigate(); + }); -// register('should check each tab', async (driver, testContext) => { -// testContext.timeout(60000); -// const page = new E2ETestPage(driver, platform); + // register('should check each tab', async (driver, testContext) => { + // testContext.timeout(60000); + // const page = new E2ETestPage(driver, platform); -// await waitForTransition(300); + // await waitForTransition(300); -// const tabTwoButton = await waitAndGetElementById(driver, 'tab-t-0-1'); -// tabTwoButton.click(); -// await waitForTransition(600); + // const tabTwoButton = await waitAndGetElementById(driver, 'tab-t-0-1'); + // tabTwoButton.click(); + // await waitForTransition(600); -// const tabThreeButton = await waitAndGetElementById(driver, 'tab-t-0-2'); -// tabThreeButton.click(); -// await waitForTransition(600); -// }); -// }); -// }); + // const tabThreeButton = await waitAndGetElementById(driver, 'tab-t-0-2'); + // tabThreeButton.click(); + // await waitForTransition(600); + // }); + }); +}); diff --git a/core/src/components/tabs/test/colors/e2e.js b/core/src/components/tabs/test/colors/e2e.js new file mode 100644 index 0000000000..7c10f08c89 --- /dev/null +++ b/core/src/components/tabs/test/colors/e2e.js @@ -0,0 +1,34 @@ +'use strict'; + +const { register, Page, platforms } = require('../../../../../scripts/e2e'); +const { getElement, waitAndGetElementById, waitForTransition } = require('../../../../../scripts/e2e/utils'); + +class E2ETestPage extends Page { + constructor(driver, platform) { + super(driver, `http://localhost:3333/src/components/tabs/test/colors?ionic:mode=${platform}`); + } +} + +platforms.forEach(platform => { + describe('tabs/colors', () => { + register('should init', driver => { + const page = new E2ETestPage(driver, platform); + return page.navigate(); + }); + + // register('should check each tab', async (driver, testContext) => { + // testContext.timeout(60000); + // const page = new E2ETestPage(driver, platform); + + // await waitForTransition(300); + + // const tabTwoButton = await waitAndGetElementById(driver, 'tab-t-0-1'); + // tabTwoButton.click(); + // await waitForTransition(600); + + // const tabThreeButton = await waitAndGetElementById(driver, 'tab-t-0-2'); + // tabThreeButton.click(); + // await waitForTransition(600); + // }); + }); +}); diff --git a/core/src/components/tabs/test/colors/index.html b/core/src/components/tabs/test/colors/index.html new file mode 100644 index 0000000000..5597864c40 --- /dev/null +++ b/core/src/components/tabs/test/colors/index.html @@ -0,0 +1,97 @@ + + + +
+ +