parallel-protractor
Version:
Running parallel end 2 end tests from the same spec file using Protractor
33 lines (25 loc) • 831 B
JavaScript
;
console.log('spec filename', __filename);
console.log('dirname', __dirname);
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
var url = 'http://juliemr.github.io/protractor-demo/';
describe('Protrator Demo App', function() {
it('should have a title', function() {
browser.get(url);
expect(browser.getTitle()).to.eventually.equal('Super Calculator');
});
});
describe('Protractor Demo App', function() {
it('should add one and two', function() {
this.timeout(5000);
browser.get(url);
element(by.model('first')).sendKeys(1);
element(by.model('second')).sendKeys(2);
element(by.id('gobutton')).click();
expect(element(by.binding('latest')).getText())
.to.eventually.equal('3');
});
});