diff --git a/src/components/searchbar/test/basic/e2e.ts b/src/components/searchbar/test/basic/e2e.ts new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/components/searchbar/test/floating/index.ts b/src/components/searchbar/test/basic/index.ts similarity index 100% rename from src/components/searchbar/test/floating/index.ts rename to src/components/searchbar/test/basic/index.ts diff --git a/src/components/searchbar/test/floating/main.html b/src/components/searchbar/test/basic/main.html similarity index 74% rename from src/components/searchbar/test/floating/main.html rename to src/components/searchbar/test/basic/main.html index bd598fc1125..9497f54e450 100644 --- a/src/components/searchbar/test/floating/main.html +++ b/src/components/searchbar/test/basic/main.html @@ -1,30 +1,30 @@
Search - Default
- +

defaultSearch: {{ defaultSearch }}

Search - Custom Placeholder
- +

customPlaceholder: {{ customPlaceholder }}

Search - No Cancel Button
- +

defaultCancel: {{ defaultCancel }}

Search - Custom Cancel Button Danger
- +
Search - Value passed
- +

diff --git a/src/components/searchbar/test/floating/e2e.ts b/src/components/searchbar/test/floating/e2e.ts deleted file mode 100644 index 13a8a1e23b6..00000000000 --- a/src/components/searchbar/test/floating/e2e.ts +++ /dev/null @@ -1,17 +0,0 @@ - -it('default should focus', function() { - element(by.css('.e2eDefaultFloatingSearchbar input')).sendKeys("AA"); -}); - -it('hide cancel button should focus', function() { - element(by.css('.e2eDefaultCancelButtonFloatingSearchbar input')).sendKeys("CC"); -}); - -it('custom cancel button should focus', function() { - element(by.css('.e2eCustomCancelButtonFloatingSearchbar input')).sendKeys("DD"); -}); - -// TODO - this test will work on iOS but fail on Android -// it('custom cancel action should alert', function() { -// element(by.css('.e2eCustomCancelActionFloatingSearchbar .searchbar-ios-cancel')).click(); -// }); diff --git a/src/components/searchbar/test/nav/e2e.ts b/src/components/searchbar/test/nav/e2e.ts new file mode 100644 index 00000000000..07fecbd745f --- /dev/null +++ b/src/components/searchbar/test/nav/e2e.ts @@ -0,0 +1,4 @@ + +it('should navigate to searchbar', function() { + element(by.css('.e2eSearchbarNav')).click(); +}); diff --git a/src/components/searchbar/test/nav/first.html b/src/components/searchbar/test/nav/first.html index a44f3c3861d..fe0c7f79489 100644 --- a/src/components/searchbar/test/nav/first.html +++ b/src/components/searchbar/test/nav/first.html @@ -3,5 +3,5 @@ - + diff --git a/src/components/searchbar/test/toolbar/e2e.ts b/src/components/searchbar/test/toolbar/e2e.ts index 5e071a52345..e69de29bb2d 100644 --- a/src/components/searchbar/test/toolbar/e2e.ts +++ b/src/components/searchbar/test/toolbar/e2e.ts @@ -1,16 +0,0 @@ - -it('default should focus', function() { - element(by.css('.e2eDefaultToolbarSearchbar input')).sendKeys("AA"); -}); - -it('primary should focus', function() { - element(by.css('.e2ePrimaryToolbarSearchbar input')).sendKeys("BB"); -}); - -it('danger should focus', function() { - element(by.css('.e2eDarkToolbarSearchbar input')).sendKeys("CC"); -}); - -it('light should focus', function() { - element(by.css('.e2eLightToolbarSearchbar input')).sendKeys("DD"); -}); diff --git a/src/components/searchbar/test/toolbar/main.html b/src/components/searchbar/test/toolbar/main.html index 7a401042129..1ffcd784728 100644 --- a/src/components/searchbar/test/toolbar/main.html +++ b/src/components/searchbar/test/toolbar/main.html @@ -5,22 +5,22 @@

Search - Default Toolbar
- +
Search - Primary Toolbar
- +
Search - Dark Toolbar
- +
Search - Light Toolbar
- +