Last active
          August 29, 2015 14:27 
        
      - 
      
 - 
        
Save leopic/dcd4c4cc9a5ee265babd to your computer and use it in GitHub Desktop.  
    protractor setup
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | exports.config = { | |
| directConnect: true, | |
| chromeDriver: '/usr/bin/chromedriver', | |
| specs: ['protractor-test.js'] | |
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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'); | |
| }); | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $: protractor conf.js | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment