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
20 lines
549 B
TypeScript
20 lines
549 B
TypeScript
import { browser, element, by } from 'protractor';
|
|
|
|
describe('Resolution-modifiers-example', () => {
|
|
|
|
beforeAll(() => browser.get(''));
|
|
|
|
it('shows basic flower emoji', async () => {
|
|
expect(await element.all(by.css('p')).get(0).getText()).toContain('🌸');
|
|
});
|
|
|
|
it('shows basic leaf emoji', async () => {
|
|
expect(await element.all(by.css('p')).get(1).getText()).toContain('🌿');
|
|
});
|
|
|
|
it('shows yellow flower in host child', async () => {
|
|
expect(await element.all(by.css('p')).get(9).getText()).toContain('🌼');
|
|
});
|
|
|
|
});
|