File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ export default class Service {
14
14
this . module = module ;
15
15
}
16
16
17
- async normalLogin ( id : string , password : string ) {
17
+ async normalLogin ( id : string , password : string , delay ?: number ) {
18
18
await this . module . urlChanger . moveToLoginURL ( ) ;
19
- await this . module . pageInteractor . login ( id , password ) ;
19
+ await this . module . pageInteractor . login ( id , password , delay ) ;
20
20
}
21
21
22
- interactiveLogin ( id : string , password : string ) {
23
- const login$ = defer ( ( ) => from ( this . normalLogin ( id , password ) ) ) ;
22
+ interactiveLogin ( id : string , password : string , delay ?: number ) {
23
+ const login$ = defer ( ( ) => from ( this . normalLogin ( id , password , delay ) ) ) ;
24
24
const loginStatus$ = interval ( 500 )
25
25
. pipe ( mergeMap ( ( ) => this . module . pageInteractor . getLoginStatus ( ) ) )
26
26
. pipe (
You can’t perform that action at this time.
0 commit comments