Skip to content

Commit 64b3bb8

Browse files
committed
fix tests copy of PR 14484
1 parent e1fcdcf commit 64b3bb8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

packages/schematics/angular/application/other-files/app.component.spec.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ describe('AppComponent', () => {
2626
expect(app.title).toEqual('<%= name %>');
2727
});
2828

29-
it('should render title in a h1 tag', () => {
29+
it('should render title', () => {
3030
const fixture = TestBed.createComponent(AppComponent);
3131
fixture.detectChanges();
3232
const compiled = fixture.debugElement.nativeElement;
33-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to <%= name %>!');
33+
expect(compiled.querySelector('.content span').textContent).toContain('<%= name %> app is running!');
3434
});
3535
});

packages/schematics/angular/e2e/files/src/app.e2e-spec.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('workspace-project App', () => {
1010

1111
it('should display welcome message', () => {
1212
page.navigateTo();
13-
expect(page.getTitleText()).toEqual('Welcome to <%= relatedAppName %>!');
13+
expect(page.getTitleText()).toEqual('<%= relatedAppName %> app is running!');
1414
});
1515

1616
afterEach(async () => {

packages/schematics/angular/e2e/files/src/app.po.ts.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export class AppPage {
66
}
77

88
getTitleText() {
9-
return element(by.css('<%= rootSelector %> h1')).getText() as Promise<string>;
9+
return element(by.css('<%= rootSelector %> .content span')).getText() as Promise<string>;
1010
}
1111
}

tests/legacy-cli/e2e/tests/build/platform-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function() {
147147
.then(() =>
148148
expectFileToMatch(
149149
'dist/test-project-server/index.html',
150-
/<h2.*>Here are some links to help you start: <\/h2>/,
150+
/<p.*>Here are some links to help you get started:<\/p>/,
151151
),
152152
)
153153
.then(() =>

tests/legacy-cli/e2e/tests/build/prod-build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export default async function () {
5454

5555
// Size checks in bytes
5656
if (ivyProject) {
57-
verifySize(mainES5Path, 147789);
58-
verifySize(mainES2015Path, 130153);
57+
verifySize(mainES5Path, 167355);
58+
verifySize(mainES2015Path, 149806);
5959
} else {
60-
verifySize(mainES5Path, 155523);
61-
verifySize(mainES2015Path, 135394);
60+
verifySize(mainES5Path, 184470);
61+
verifySize(mainES2015Path, 163627);
6262
}
6363

6464
// Check that the process didn't change local files.

0 commit comments

Comments
 (0)