* chore(test): add protractor4 * fix lint, remove boilerplate files, fix less gen * separate scripts between package.json * ignore a2docs.css in boilerplate * remove tslint in _examples
		
			
				
	
	
		
			22 lines
		
	
	
		
			509 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			509 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
'use strict'; // necessary for es6 output in node 
 | 
						|
 | 
						|
import { browser, element, by } from 'protractor';
 | 
						|
 | 
						|
describe('QuickStart E2E Tests', function () {
 | 
						|
 | 
						|
  let expectedMsg = 'Hello from Angular App with Webpack';
 | 
						|
 | 
						|
  beforeEach(function () {
 | 
						|
    browser.get('');
 | 
						|
  });
 | 
						|
 | 
						|
  it(`should display: ${expectedMsg}`, function () {
 | 
						|
    expect(element(by.css('h1')).getText()).toEqual(expectedMsg);
 | 
						|
  });
 | 
						|
 | 
						|
  it('should display an image', function () {
 | 
						|
    expect(element(by.css('img')).isPresent()).toBe(true);
 | 
						|
  });
 | 
						|
 | 
						|
});
 |