File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ beforeEach(() => {
44} ) ;
55
66it ( 'should show loading component while saving' , ( ) => {
7- cy . intercept ( '**/sites/ **canSubmit**' ) . as ( 'canSubmit' ) ;
7+ cy . intercept ( '**/api/authz/authorizations/search/objects **canSubmit**' ) . as ( 'canSubmit' ) ;
88 cy . wait ( '@canSubmit' ) ;
99
1010 const title = 'Test Community Title' ;
Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ import {
44} from '@angular/core' ;
55import isArray from 'lodash/isArray' ;
66import {
7- forkJoin ,
7+ combineLatest ,
88 Observable ,
99 of ,
1010} from 'rxjs' ;
1111import {
1212 filter ,
1313 map ,
1414 switchMap ,
15+ take ,
1516} from 'rxjs/operators' ;
1617import { SearchOptions } from 'src/app/shared/search/models/search-options.model' ;
1718import {
@@ -151,8 +152,9 @@ export class SearchManager {
151152 requestsIds . push ( getRequestIdFromParams ( type , uuidList , features ) ) ;
152153 } ) ;
153154
154- return forkJoin ( requestsIds . map ( id => this . authorizationService . isRequestLoading ( id ) ) ) . pipe (
155+ return combineLatest ( requestsIds . map ( id => this . authorizationService . isRequestLoading ( id ) ) ) . pipe (
155156 filter ( loadingItems => loadingItems . every ( loading => ! loading ) ) ,
157+ take ( 1 ) ,
156158 map ( ( ) => {
157159 return searchObjects ;
158160 } ) ,
You can’t perform that action at this time.
0 commit comments