angular-cn/aio/content/examples/styleguide/e2e-spec.ts

17 lines
396 B
TypeScript

'use strict'; // necessary for es6 output in node
import { browser, element, by } from 'protractor';
describe('Documentation StyleGuide E2E Tests', function() {
let expectedMsg = 'My First Angular App';
beforeEach(function () {
browser.get('');
});
it('should display: ' + expectedMsg, function() {
expect(element(by.id('output')).getText()).toEqual(expectedMsg);
});
});