Skip to content

Commit d00ab1c

Browse files
committed
test: update standalone test to add Protractor testing support
After angular/angular#45885, testability now needs to be explicitly added to `bootstrapApplication()`. (cherry picked from commit 329a2a3)
1 parent 5a53da0 commit d00ab1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/legacy-cli/e2e/tests/basic/standalone.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ng } from '../../utils/process';
2222
const STANDALONE_MAIN_CONTENT = `
2323
import { Component } from '@angular/core';
2424
import { CommonModule } from '@angular/common';
25-
import { bootstrapApplication } from '@angular/platform-browser';
25+
import { bootstrapApplication, provideProtractorTestingSupport } from '@angular/platform-browser';
2626
2727
@Component({
2828
selector: 'app-root',
@@ -41,7 +41,9 @@ export class AppComponent {
4141
isVisible = true;
4242
}
4343
44-
bootstrapApplication(AppComponent);
44+
bootstrapApplication(AppComponent, {
45+
providers: [ provideProtractorTestingSupport() ],
46+
});
4547
`;
4648

4749
export default async function () {

0 commit comments

Comments
 (0)