From 120d17af6a9fbe12c8a97b329c4547f5e546defb Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 26 Jun 2018 17:59:24 -0400 Subject: [PATCH] test(searchbar): add e2e for toolbar searchbar test --- .../components/searchbar/test/toolbar/e2e.js | 19 +++++++++++++ .../searchbar/test/toolbar/index.html | 28 +++++++++---------- 2 files changed, 33 insertions(+), 14 deletions(-) create mode 100644 core/src/components/searchbar/test/toolbar/e2e.js diff --git a/core/src/components/searchbar/test/toolbar/e2e.js b/core/src/components/searchbar/test/toolbar/e2e.js new file mode 100644 index 0000000000..838525f0c6 --- /dev/null +++ b/core/src/components/searchbar/test/toolbar/e2e.js @@ -0,0 +1,19 @@ +'use strict'; + +const { By, until } = require('selenium-webdriver'); +const { register, Page, platforms } = require('../../../../../scripts/e2e'); + +class E2ETestPage extends Page { + constructor(driver, platform) { + super(driver, `http://localhost:3333/src/components/searchbar/test/toolbar?ionic:mode=${platform}`); + } +} + +platforms.forEach(platform => { + describe('searchbar/toolbar', () => { + register('should init', driver => { + const page = new E2ETestPage(driver, platform); + return page.navigate('#content'); + }); + }); +}); diff --git a/core/src/components/searchbar/test/toolbar/index.html b/core/src/components/searchbar/test/toolbar/index.html index ff1592116d..827809eb8a 100644 --- a/core/src/components/searchbar/test/toolbar/index.html +++ b/core/src/components/searchbar/test/toolbar/index.html @@ -18,20 +18,7 @@ - - - - - - - - - - - - - - +
Search - Transparent Toolbar
@@ -87,12 +74,25 @@ + + + + + + + + + + + +