Skip to content

Commit

Permalink
test: update standalone test to add Protractor testing support
Browse files Browse the repository at this point in the history
After angular/angular#45885, testability now needs to be explicitly added to `bootstrapApplication()`.

(cherry picked from commit 329a2a3)
  • Loading branch information
dgp1130 committed May 11, 2022
1 parent 5a53da0 commit 2089645
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/legacy-cli/e2e/tests/basic/standalone.ts
Expand Up @@ -22,7 +22,7 @@ import { ng } from '../../utils/process';
const STANDALONE_MAIN_CONTENT = `
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { bootstrapApplication } from '@angular/platform-browser';
import { bootstrapApplication, provideProtractorTestingSupport } from '@angular/platform-browser';
@Component({
selector: 'app-root',
Expand All @@ -41,7 +41,9 @@ export class AppComponent {
isVisible = true;
}
bootstrapApplication(AppComponent);
bootstrapApplication(AppComponent, {
providers: [ provideProtractorTestingSupport() ],
});
`;

export default async function () {
Expand Down

0 comments on commit 2089645

Please sign in to comment.