build: disable failing ivy playground example e2e tests (#28490)

With ed1ba88ffd9d0fc266808413fa517e7a31943bc8 we switched the
examples to run with Bazel. This means that we can now also run the
e2e tests for these examples against Ivy. All playground e2e tests,
**except** the `web_worker` examples, successfully run with Ivy.

The failing webworker e2e tests have been temporarily disabled with
`fixmeIvy` and need to be investigated in a follow-up.

PR Close #28490
This commit is contained in:
Paul Gschwendtner 2019-02-01 14:55:11 +01:00 committed by Matias Niemelä
parent 16a78f97f5
commit 5cdbdc9ee0
6 changed files with 222 additions and 205 deletions

View File

@ -6,10 +6,12 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {browser} from 'protractor';
describe('hello world', function() {
import {verifyNoBrowserErrors} from '../../../e2e_util/e2e_util';
fixmeIvy('NullInjectorError: No provider for Renderer!').describe('hello world', function() {
afterEach(verifyNoBrowserErrors);

View File

@ -6,17 +6,19 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {ExpectedConditions, browser, by, element, protractor} from 'protractor';
import {verifyNoBrowserErrors} from '../../../../e2e_util/e2e_util';
describe('WebWorkers Input', function() {
fixmeIvy('NullInjectorError: No provider for InjectionToken ROOT_CONTEXT_TOKEN!')
.describe('WebWorkers Input', function() {
afterEach(() => {
verifyNoBrowserErrors();
browser.ignoreSynchronization = false;
});
const selector = 'input-app';
const URL = 'all/playground/src/web_workers/input/index.html';
const URL = '/';
const VALUE = 'test val';
it('should bootstrap', () => {
@ -63,7 +65,8 @@ describe('WebWorkers Input', function() {
() => {
const elem = element(by.css(selector + ' h2'));
browser.wait(
protractor.ExpectedConditions.textToBePresentInElement(elem, 'Input App'), 5000);
protractor.ExpectedConditions.textToBePresentInElement(elem, 'Input App'),
5000);
},
() => {
// jasmine will timeout if this gets called too many times

View File

@ -6,16 +6,19 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {ExpectedConditions, browser, by, element, protractor} from 'protractor';
describe('WebWorkers Kitchen Sink', function() {
import {verifyNoBrowserErrors} from '../../../../e2e_util/e2e_util';
fixmeIvy('NullInjectorError: No provider for InjectionToken ROOT_CONTEXT_TOKEN!')
.describe('WebWorkers Kitchen Sink', function() {
afterEach(() => {
verifyNoBrowserErrors();
browser.ignoreSynchronization = false;
});
const selector = 'hello-app .greeting';
const URL = 'all/playground/src/web_workers/kitchen_sink/index.html';
const URL = '/';
it('should greet', () => {
// This test can't wait for Angular as Testability is not available when using WebWorker

View File

@ -6,12 +6,15 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {ExpectedConditions, browser, by, element, protractor} from 'protractor';
const URL = 'all/playground/src/web_workers/message_broker/index.html';
import {verifyNoBrowserErrors} from '../../../../e2e_util/e2e_util';
describe('MessageBroker', function() {
const URL = '/';
fixmeIvy('NullInjectorError: No provider for InjectionToken ROOT_CONTEXT_TOKEN!')
.describe('MessageBroker', function() {
afterEach(() => {
verifyNoBrowserErrors();

View File

@ -6,10 +6,13 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {browser, by, element, protractor} from 'protractor';
describe('WebWorker Router', () => {
import {verifyNoBrowserErrors} from '../../../../e2e_util/e2e_util';
fixmeIvy('NullInjectorError: No provider for InjectionToken ROOT_CONTEXT_TOKEN!')
.describe('WebWorker Router', () => {
beforeEach(() => {
// This test can't wait for Angular as Testability is not available when using WebWorker
browser.ignoreSynchronization = true;
@ -23,7 +26,7 @@ describe('WebWorker Router', () => {
const contentSelector = 'app main h1';
const navSelector = 'app nav ul';
const baseUrl = 'all/playground/src/web_workers/router/index.html';
const baseUrl = '/';
it('should route on click', () => {
browser.get(baseUrl);

View File

@ -6,16 +6,19 @@
* found in the LICENSE file at https://angular.io/license
*/
import {verifyNoBrowserErrors} from 'e2e_util/e2e_util';
import {fixmeIvy} from '@angular/private/testing';
import {browser, by, element, protractor} from 'protractor';
describe('WebWorkers Todo', function() {
import {verifyNoBrowserErrors} from '../../../../e2e_util/e2e_util';
fixmeIvy('NullInjectorError: No provider for InjectionToken ROOT_CONTEXT_TOKEN!')
.describe('WebWorkers Todo', function() {
afterEach(() => {
verifyNoBrowserErrors();
browser.ignoreSynchronization = false;
});
const URL = 'all/playground/src/web_workers/todo/index.html';
const URL = '/';
it('should bootstrap', () => {
// This test can't wait for Angular as Testability is not available when using WebWorker