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
12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
import { browser, element, by } from 'protractor';
|
|
|
|
describe('Docs Style Guide', () => {
|
|
const title = 'Authors Style Guide Sample';
|
|
|
|
beforeAll(() => browser.get(''));
|
|
|
|
it(`should display correct title: ${title}`, async () => {
|
|
expect(await element(by.css('h1')).getText()).toEqual(title);
|
|
});
|
|
});
|