Test form replay feature (closes: #630)
	
		
	
				
					
				
			
							parent
							
								
									f5856422e0
								
							
						
					
					
						commit
						baedbcef1a
					
				@ -0,0 +1,13 @@ | 
				
			||||
<html> | 
				
			||||
<head> | 
				
			||||
<title></title> | 
				
			||||
</head> | 
				
			||||
<body> | 
				
			||||
  <form id="test" method="post" action="index.pl"> | 
				
			||||
    <input name="postuid" placeholder="postuid" /> | 
				
			||||
    <input name="postmail" placeholder="postmail" /> | 
				
			||||
    <input name="poststatic" placeholder="poststatic" /> | 
				
			||||
    <input name="post" type="submit" /> | 
				
			||||
  </form> | 
				
			||||
</body> | 
				
			||||
</html> | 
				
			||||
@ -0,0 +1,13 @@ | 
				
			||||
'use strict'; | 
				
			||||
 | 
				
			||||
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ | 
				
			||||
 | 
				
			||||
describe('Lemonldap::NG', function() { | 
				
			||||
 | 
				
			||||
  describe('Form replay mechanism', function() { | 
				
			||||
    it('should redirect to index.pl', function() { | 
				
			||||
      browser.driver.get('http://test1.example.com:' + process.env.TESTWEBSERVERPORT + '/form.html'); | 
				
			||||
      expect(browser.driver.findElement(by.id('field_postuid')).getText()).toEqual('dwho'); | 
				
			||||
    }); | 
				
			||||
  }); | 
				
			||||
}); | 
				
			||||
					Loading…
					
					
				
		Reference in new issue