test(searchbar): removing unnecessary tests

This commit is contained in:
Brandy Carney
2015-12-17 14:13:46 -05:00
parent dd6773a5fa
commit ff8d6c5cd1
2 changed files with 6 additions and 15 deletions

View File

@@ -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();

View File

@@ -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() {