Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beforeEach(function(){
- browser.get('#/loginPage');
- username= element(by.id('username'));
- password= element(by.id('password'));
- loginButton= element(by.id('loginButton'));
- });
- it('should validate the credentials for a successful login and display the recommended view', function() {
- //
- username.sendKeys('user@gmail.com');
- password.sendKeys('abc12345');
- loginButton.click().then(function()
- {
- browser.get('http://website.com/api/login?email=user@gmail.com&password=abc12345')
- expect(browser.driver.getCurrentUrl()).toMatch('/menu.recommendedJobs')
- },10000)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement