fix(locators): do not retry via catchError (#10762)

This commit is contained in:
Alex Rudenko 2023-08-21 18:32:13 +02:00 committed by GitHub
parent bb944ad968
commit 8f9388f2ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,9 +442,9 @@ export abstract class Locator<T> extends EventEmitter {
}),
mergeMap(handle => {
return from(handle.click(options)).pipe(
catchError((_, caught) => {
catchError(err => {
void handle.dispose().catch(debugError);
return caught;
throw err;
})
);
}),
@ -575,9 +575,9 @@ export abstract class Locator<T> extends EventEmitter {
})
)
.pipe(
catchError((_, caught) => {
catchError(err => {
void handle.dispose().catch(debugError);
return caught;
throw err;
})
);
}),
@ -603,9 +603,9 @@ export abstract class Locator<T> extends EventEmitter {
}),
mergeMap(handle => {
return from(handle.hover()).pipe(
catchError((_, caught) => {
catchError(err => {
void handle.dispose().catch(debugError);
return caught;
throw err;
})
);
}),
@ -644,9 +644,9 @@ export abstract class Locator<T> extends EventEmitter {
options?.scrollLeft
)
).pipe(
catchError((_, caught) => {
catchError(err => {
void handle.dispose().catch(debugError);
return caught;
throw err;
})
);
}),