test(ivy): add root cause for failing hello world e2e tests (#28540)

PR Close #28540
This commit is contained in:
Marc Laval 2019-02-05 14:24:19 +01:00 committed by Matias Niemelä
parent d4add5428b
commit 2ea4f690e4
1 changed files with 18 additions and 17 deletions

View File

@ -11,29 +11,30 @@ import {browser} from 'protractor';
import {verifyNoBrowserErrors} from '../../../e2e_util/e2e_util';
fixmeIvy('NullInjectorError: No provider for Renderer!').describe('hello world', function() {
fixmeIvy('FW-1032: Ivy doesn\'t support injecting Renderer, the deprecated renderer V1')
.describe('hello world', function() {
afterEach(verifyNoBrowserErrors);
afterEach(verifyNoBrowserErrors);
describe('hello world app', function() {
const URL = '/';
describe('hello world app', function() {
const URL = '/';
it('should greet', function() {
browser.get(URL);
it('should greet', function() {
browser.get(URL);
expect(getComponentText('hello-app', '.greeting')).toEqual('hello world!');
});
it('should change greeting', function() {
browser.get(URL);
clickComponentButton('hello-app', '.changeButton');
expect(getComponentText('hello-app', '.greeting')).toEqual('howdy world!');
});
});
expect(getComponentText('hello-app', '.greeting')).toEqual('hello world!');
});
it('should change greeting', function() {
browser.get(URL);
clickComponentButton('hello-app', '.changeButton');
expect(getComponentText('hello-app', '.greeting')).toEqual('howdy world!');
});
});
});
function getComponentText(selector: string, innerSelector: string) {
return browser.executeScript(
`return document.querySelector("${selector}").querySelector("${innerSelector}").textContent`);