UNPKG

ionic-framework

Version:
28 lines (24 loc) 1.14 kB
describe('searchbar/test/floating: android', function() { it('should init', function() { browser.get('http://localhost:8876/dist/e2e/searchbar/test/floating/index.html?ionicplatform=android&ionicanimate=false&snapshot=true'); }); 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 () { element(by.css('.e2eDefaultCancelButtonFloatingSearchbar input')).sendKeys("CC"); }); 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(); // }); });