mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(searchbar): removing unnecessary tests
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user