17. Protractor Test Flow
17
describe('Lab', function() {
it('Should be able to start/stop lab', function() {
const lab = $('*[data-component="Lab"]');
const runButton = lab.element(by.css('*[data-button="Play"]'));
intoView( runButton).click(); // Promise
// Protractor calls whenStable() in the from within the next isPresent() call
expect(lab.element(by.cssContainingText('*', 'Started')). isPresent()).toBeTruthy();
const stopButton = lab.element(by.css('*[data-button="Stop"]'));
intoView( stopButton).click(); // Promise
// Protractor calls whenStable() in the from within the next isPresent() call
expect(lab.element(by.cssContainingText('*', 'Stopped')). isPresent()).toBeTruthy();
});
});
22. HPE Service Virtualization virtual reality for distributed apps
22
Want to join a an agile frontend team?
Key technologies
– ES6+ / TypeScript / Java
– React
– Redux
– Redux-sagas
– Protractor
Have a look at hpsv.cz
Send CVs via email to stop@hpe.com or contact me @opichals