mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 03:38:03 +08:00
add e2e tools
This commit is contained in:
parent
d40bb28bdd
commit
448595e3e8
10
e2e/env.mi
Normal file
10
e2e/env.mi
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
=== Env
|
||||||
|
|
||||||
|
--- open modal
|
||||||
|
goto localhost:4200
|
||||||
|
|
||||||
|
find:
|
||||||
|
[button] = send [button] = saveApi
|
||||||
|
|
||||||
|
--- add new Env
|
||||||
|
goto localhost:4200
|
@ -103,6 +103,7 @@
|
|||||||
"karma-electron": "7.1.0",
|
"karma-electron": "7.1.0",
|
||||||
"karma-jasmine": "4.0.1",
|
"karma-jasmine": "4.0.1",
|
||||||
"karma-jasmine-html-reporter": "1.7.0",
|
"karma-jasmine-html-reporter": "1.7.0",
|
||||||
|
"lodash": "4.17.21",
|
||||||
"node-polyfill-webpack-plugin": "1.1.4",
|
"node-polyfill-webpack-plugin": "1.1.4",
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
"playwright": "1.16.3",
|
"playwright": "1.16.3",
|
||||||
|
@ -27,7 +27,7 @@ import { EnvState } from '../../../shared/store/env.state';
|
|||||||
export class ApiTestComponent implements OnInit, OnDestroy {
|
export class ApiTestComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild('historyComponent')
|
@ViewChild('historyComponent')
|
||||||
@Select(EnvState)
|
@Select(EnvState)
|
||||||
env$: Observable<number>;
|
env$: Observable<any>;
|
||||||
historyComponent: ApiTestHistoryComponent;
|
historyComponent: ApiTestHistoryComponent;
|
||||||
validateForm!: FormGroup;
|
validateForm!: FormGroup;
|
||||||
apiData: any;
|
apiData: any;
|
||||||
|
2
src/app/pages/env/env.component.ts
vendored
2
src/app/pages/env/env.component.ts
vendored
@ -18,7 +18,7 @@ import { takeUntil } from 'rxjs/operators';
|
|||||||
})
|
})
|
||||||
export class EnvComponent implements OnInit, OnDestroy {
|
export class EnvComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild('table') table: EoTableComponent; // * child component ref
|
@ViewChild('table') table: EoTableComponent; // * child component ref
|
||||||
// @Select(EnvState) env$: Observable<number>;
|
// @Select(EnvState) env$: Observable<any>;
|
||||||
varName = `{{变量名}}`;
|
varName = `{{变量名}}`;
|
||||||
isVisible = false;
|
isVisible = false;
|
||||||
envInfo: any = {};
|
envInfo: any = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user