当Karma启动Chrome时,我收到以下错误 此外,这只发生在Windows上;在Linux上运行良好。
[4804:10108:0921/102208.538:ERROR:configuration_policy_handler_list.cc(92)] Unknown policy: PasswordManagerAllowShowPasswords
已安装Chrome - 版本60.0.3112.90(官方版本)(32位)
相关套餐 -
" @ angular / animations":" ^ 4.4.1",
" @ angular / cdk":" ^ 2.0.0-beta.10",
" @ angular / common":" ~4.4.1",
" @ angular / compiler":" ~4.4.1",
" @ angular / core":" ~4.4.1",
" @ angular / flex-layout":" ^ 2.0.0-beta.9",
" @ angular / forms":" ~4.4.1",
" @ angular / http":" ~4.4.1",
" @ angular / material":" ^ 2.0.0-beta.10",
" @ angular / platform-browser":" ~4.4.1",
" @ angular / platform-browser-dynamic":" ~4.4.1",
" @ angular / router":" ~4.4.1",
"业力":" ^ 1.7.1",
" karma-chrome-launcher":" ^ 2.0.0"
chromedriver_2.32.zip
selenium-server-standalone-3.5.3.jar
示例测试用例 -
import { TestBed } from '@angular/core/testing';
import { provideRoutes } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { ApiService } from './shared';
import { AppComponent } from './app.component';
import { MaterialModule } from './material/material.module';
import { MenuModule } from './menu/menu.module';
import { SecurityModule } from '@savantly/ngx-security';
describe('App', () => {
// provide our implementations or mocks to the dependency injector
beforeEach(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule, MenuModule, SecurityModule, MaterialModule],
declarations: [AppComponent],
providers: [ApiService, provideRoutes([])]
});
});
it('should have an url', () => {
let fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
expect(true);
});
});