Skip to content

Instantly share code, notes, and snippets.

@leopic
Last active August 29, 2015 14:27
Show Gist options
  • Save leopic/dcd4c4cc9a5ee265babd to your computer and use it in GitHub Desktop.
Save leopic/dcd4c4cc9a5ee265babd to your computer and use it in GitHub Desktop.
protractor setup
exports.config = {
directConnect: true,
chromeDriver: '/usr/bin/chromedriver',
specs: ['protractor-test.js']
};
describe('falafel basix', function() {
it('should login the user and check the greeting', function() {
browser.get('http://ci.falafel.cr:8080/issue468/#/login');
// Login
element(by.name('email')).sendKeys('[email protected]');
element(by.name('contrasena')).sendKeys('test123');
element(by.css('.btn-success')).click();
// Post login
var h1 = element(by.css('h1'));
expect(h1.getText()).toEqual('Bienvenido Juan Pablo');
});
});
$: protractor conf.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment