diff --git a/ionic/components/searchbar/test/floating/e2e.ts b/ionic/components/searchbar/test/floating/e2e.ts index 3c67c74834..13a8a1e23b 100644 --- a/ionic/components/searchbar/test/floating/e2e.ts +++ b/ionic/components/searchbar/test/floating/e2e.ts @@ -3,11 +3,7 @@ it('default should focus', function() { element(by.css('.e2eDefaultFloatingSearchbar input')).sendKeys("AA"); }); -it('custom placeholder should focus', function() { - element(by.css('.e2eCustomPlaceholderFloatingSearchbar input')).sendKeys("BB"); -}); - -it('default cancel button should focus', function() { +it('hide cancel button should focus', function() { element(by.css('.e2eDefaultCancelButtonFloatingSearchbar input')).sendKeys("CC"); }); @@ -15,10 +11,6 @@ it('custom cancel button should focus', function() { element(by.css('.e2eCustomCancelButtonFloatingSearchbar input')).sendKeys("DD"); }); -it('custom cancel action should focus', function() { - element(by.css('.e2eCustomCancelActionFloatingSearchbar input')).sendKeys("FF"); -}); - // 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/ionic/components/searchbar/test/floating/index.ts b/ionic/components/searchbar/test/floating/index.ts index 3f2606d06d..a9421e79e2 100644 --- a/ionic/components/searchbar/test/floating/index.ts +++ b/ionic/components/searchbar/test/floating/index.ts @@ -8,12 +8,11 @@ import {SearchPipe} from 'ionic/components/searchbar/searchbar'; directives: [FORM_DIRECTIVES] }) class E2EApp { - defaultSearch: string = 'filter'; - customPlaceholder: string; - defaultCancel: string; - customCancel: string; - customCancelLong: string; - customCancelAction: string; + defaultSearch: string = ''; + customPlaceholder: string = ''; + defaultCancel: string = ''; + customCancel: string = ''; + customCancelAction: string = ''; clickedCustomAction: boolean = false; constructor() {