File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ async function processQuery(handles: IHandleSet): Promise<DOMReturnType> {
98
98
const handle = await containerHandle . evaluateHandle ( evaluateFn , [ fnName , ...argsToForward ] )
99
99
return await covertToElementHandle ( handle , fnName . includes ( 'All' ) )
100
100
} catch ( err ) {
101
- err . message = err . message . replace ( '[fnName]' , `[${ fnName } ]` )
101
+ err . message = err . message
102
+ . replace ( / ^ .* (? = T e s t i n g L i b r a r y E l e m e n t E r r o r : ) / , '' )
103
+ . replace ( '[fnName]' , `[${ fnName } ]` )
102
104
err . stack = err . stack . replace ( '[fnName]' , `[${ fnName } ]` )
103
105
throw err
104
106
}
Original file line number Diff line number Diff line change 3
3
exports [` lib/extend.ts should handle the LabelText methods 1` ] = ` "<input id =\\"label-text-input\\" type =\\"text\\">"`;
4
4
5
5
exports[`lib/extend.ts should handle the get* method failures 1`] = `
6
- " Evaluation failed: TestingLibraryElementError: Unable to find an element with the title: missing.
6
+ " TestingLibraryElementError: Unable to find an element with the title: missing.
7
7
8
8
<div
9
9
id=\\" scoped\\"
You can’t perform that action at this time.
0 commit comments