mirror of
				https://github.com/mmumshad/ansible-playable.git
				synced 2025-03-09 23:38:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			554 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| var config = browser.params;
 | |
| 
 | |
| describe('Main View', function() {
 | |
|   var page;
 | |
| 
 | |
|   beforeEach(function() {
 | |
|     let promise = browser.get(config.baseUrl + '/');
 | |
|     page = require('./main.po');
 | |
|     return promise;
 | |
|   });
 | |
| 
 | |
|   it('should include jumbotron with correct data', function() {
 | |
|     expect(page.h1El.getText()).to.eventually.equal('\'Allo, \'Allo!');
 | |
|     expect(page.imgEl.getAttribute('src')).to.eventually.match(/yeoman(\.[a-zA-Z0-9]*)?\.png$/);
 | |
|     expect(page.imgEl.getAttribute('alt')).to.eventually.equal('I\'m Yeoman');
 | |
|   });
 | |
| });
 |