test: disable failing ivy example e2e tests (#28402)

PR Close #28402
This commit is contained in:
Paul Gschwendtner
2019-01-28 22:00:36 +01:00
committed by Jason Aden
parent 98e5af1480
commit 29513296fb
5 changed files with 123 additions and 101 deletions

View File

@ -6,40 +6,45 @@
* found in the LICENSE file at https://angular.io/license
*/
import {fixmeIvy} from '@angular/private/testing';
import {ElementArrayFinder, ElementFinder, browser, by, element} from 'protractor';
import {verifyNoBrowserErrors} from '../../../../_common/e2e_util';
describe('simpleNgModel example', () => {
afterEach(verifyNoBrowserErrors);
let input: ElementFinder;
let paragraphs: ElementArrayFinder;
let button: ElementFinder;
import {verifyNoBrowserErrors} from '../../../../test-utils';
beforeEach(() => {
browser.get('/forms/ts/simpleNgModel/index.html');
input = element(by.css('input'));
paragraphs = element.all(by.css('p'));
button = element(by.css('button'));
});
fixmeIvy(
'unkown; verifyNoBrowserErrors fails due to "ExpressionChangedAfterItHasBeenCheckedError"' +
'Debug by running "yarn bazel run //packages/examples/forms:devserver --define=compile=aot')
.describe('simpleNgModel example', () => {
afterEach(verifyNoBrowserErrors);
let input: ElementFinder;
let paragraphs: ElementArrayFinder;
let button: ElementFinder;
it('should update the domain model as you type', () => {
input.click();
input.sendKeys('Carson');
beforeEach(() => {
browser.get('/simpleNgModel');
input = element(by.css('input'));
paragraphs = element.all(by.css('p'));
button = element(by.css('button'));
});
expect(paragraphs.get(0).getText()).toEqual('Value: Carson');
});
it('should update the domain model as you type', () => {
input.click();
input.sendKeys('Carson');
it('should report the validity correctly', () => {
expect(paragraphs.get(1).getText()).toEqual('Valid: false');
input.click();
input.sendKeys('a');
expect(paragraphs.get(0).getText()).toEqual('Value: Carson');
});
expect(paragraphs.get(1).getText()).toEqual('Valid: true');
});
it('should report the validity correctly', () => {
expect(paragraphs.get(1).getText()).toEqual('Valid: false');
input.click();
input.sendKeys('a');
it('should set the value by changing the domain model', () => {
button.click();
expect(input.getAttribute('value')).toEqual('Nancy');
});
expect(paragraphs.get(1).getText()).toEqual('Valid: true');
});
});
it('should set the value by changing the domain model', () => {
button.click();
expect(input.getAttribute('value')).toEqual('Nancy');
});
});