Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. beforeEach(function(){
  2. browser.get('#/loginPage');
  3. username= element(by.id('username'));
  4. password= element(by.id('password'));
  5. loginButton= element(by.id('loginButton'));
  6. });
  7.  
  8. it('should validate the credentials for a successful login and display the recommended view', function() {
  9.  
  10. //
  11. username.sendKeys('user@gmail.com');
  12. password.sendKeys('abc12345');
  13.  
  14. loginButton.click().then(function()
  15. {
  16. browser.get('http://website.com/api/login?email=user@gmail.com&password=abc12345')
  17. expect(browser.driver.getCurrentUrl()).toMatch('/menu.recommendedJobs')
  18.  
  19. },10000)
  20. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement