Fixed e2e tests

This commit is contained in:
Darren Nelsen 2017-08-17 11:03:08 -04:00
parent 1f974e5176
commit e2c69203ec
2 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ describe('InsightApp', () => {
});
});
it('the left menu has a link with title Blocks', () => {
it('the left menu has a link with title Home', () => {
element(by.css('.bar-button-menutoggle')).click()
.then(() => {
browser.driver.sleep(2000); // wait for the animation
expect(element.all(by.css('ion-label')).first().getText()).toEqual('Blocks');
expect(element.all(by.css('ion-label')).first().getText()).toEqual('Home');
});
});
});

View File

@ -10,7 +10,7 @@ describe('BroadcastTxPage', () => {
element(by.css('.bar-button-menutoggle')).click().then(() => {
browser.driver.sleep(2000); // wait for the animation
element.all(by.className('input-wrapper')).then((items) => {
items[1].click();
items[2].click();
browser.driver.sleep(2000); // wait for the animation
let theElem = element.all(by.css('ion-label')).first;
console.log(theElem);