add e2e tools

This commit is contained in:
kungfuboy 2022-01-17 21:26:49 +08:00
parent d40bb28bdd
commit 448595e3e8
4 changed files with 13 additions and 2 deletions

10
e2e/env.mi Normal file
View File

@ -0,0 +1,10 @@
=== Env
--- open modal
goto localhost:4200
find:
[button] = send [button] = saveApi
--- add new Env
goto localhost:4200

View File

@ -103,6 +103,7 @@
"karma-electron": "7.1.0",
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"lodash": "4.17.21",
"node-polyfill-webpack-plugin": "1.1.4",
"npm-run-all": "4.1.5",
"playwright": "1.16.3",

View File

@ -27,7 +27,7 @@ import { EnvState } from '../../../shared/store/env.state';
export class ApiTestComponent implements OnInit, OnDestroy {
@ViewChild('historyComponent')
@Select(EnvState)
env$: Observable<number>;
env$: Observable<any>;
historyComponent: ApiTestHistoryComponent;
validateForm!: FormGroup;
apiData: any;

View File

@ -18,7 +18,7 @@ import { takeUntil } from 'rxjs/operators';
})
export class EnvComponent implements OnInit, OnDestroy {
@ViewChild('table') table: EoTableComponent; // * child component ref
// @Select(EnvState) env$: Observable<number>;
// @Select(EnvState) env$: Observable<any>;
varName = `{{变量名}}`;
isVisible = false;
envInfo: any = {};