diff --git a/integration/hello_world__closure/e2e/app.e2e-spec.ts b/integration/hello_world__closure/e2e/app.e2e-spec.ts index d23f09b6c2..04fadb2525 100644 --- a/integration/hello_world__closure/e2e/app.e2e-spec.ts +++ b/integration/hello_world__closure/e2e/app.e2e-spec.ts @@ -3,6 +3,9 @@ import { browser, element, by } from 'protractor'; describe('Hello world E2E Tests', function () { it('should display: Hello world!', function () { browser.get(''); - expect(element(by.css('div')).getText()).toEqual('Hello world!'); + const div = element(by.css('div')); + expect(div.getText()).toEqual('Hello world!'); + element(by.css('input')).sendKeys('!'); + expect(div.getText()).toEqual('Hello world!!'); }); }); diff --git a/integration/hello_world__closure/src/hello-world.component.ts b/integration/hello_world__closure/src/hello-world.component.ts index ce2f219a47..87b9ca39de 100644 --- a/integration/hello_world__closure/src/hello-world.component.ts +++ b/integration/hello_world__closure/src/hello-world.component.ts @@ -1,10 +1,12 @@ -import {Component, Injectable} from '@angular/core'; +import {Component} from '@angular/core'; @Component({ selector: 'hello-world-app', - template: '