mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit disables the Selenium Promise Manager when running e2e tests for docs examples in order to more closely align them with new apps created with CLI v11. This change requires that any async operations in tests are handled explicitly (e.g. using `async/await` or `Promise#then()`). PR Close #39818
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { browser, element, by } from 'protractor';
|
|
|
|
describe('QuickStart E2E Tests', () => {
|
|
|
|
const expectedMsg = 'Hello Angular';
|
|
|
|
beforeEach(() => browser.get(''));
|
|
|
|
it(`should display: ${expectedMsg}`, async () => {
|
|
expect(await element(by.css('h1')).getText()).toEqual(expectedMsg);
|
|
});
|
|
|
|
});
|