flosight-api/app/e2e/page2.e2e-spec.ts
2017-06-13 15:48:52 -04:00

23 lines
704 B
TypeScript

import { browser, element, by, ElementFinder } from 'protractor';
let message: ElementFinder = element(by.className('message'));
describe('Page2', () => {
beforeEach(() => {
browser.get('');
});
it('should have correct text when Goodbye Ionic is selected', () => {
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();
browser.driver.sleep(2000); // wait for the animation
expect(message.getText()).toEqual('SHOW SIMPLE ALERT\nSHOW MORE ADVANCED ALERT');
return items[1];
});
});
});
});