@@ -46,15 +46,15 @@ const SIMMERJS = fs
46
46
let _config : Partial < Config >
47
47
48
48
async function injectDOMTestingLibrary ( container : ElementBase ) {
49
- const shouldInject = await container . execute ( function ( ) {
49
+ const shouldInject = await container . parent . execute ( function ( ) {
50
50
return {
51
51
domTestingLibrary : ! window . TestingLibraryDom ,
52
52
simmer : ! window . Simmer ,
53
53
}
54
54
} )
55
55
56
56
if ( shouldInject . domTestingLibrary ) {
57
- await container . execute ( function ( library : string ) {
57
+ await container . parent . execute ( function ( library : string ) {
58
58
// add DOM Testing Library to page as a script tag to support Firefox
59
59
if ( navigator . userAgent . includes ( 'Firefox' ) ) {
60
60
const script = document . createElement ( 'script' )
@@ -68,10 +68,10 @@ async function injectDOMTestingLibrary(container: ElementBase) {
68
68
}
69
69
70
70
if ( shouldInject . simmer ) {
71
- await container . execute ( SIMMERJS )
71
+ await container . parent . execute ( SIMMERJS )
72
72
}
73
73
74
- await container . execute ( function ( config : Config ) {
74
+ await container . parent . execute ( function ( config : Config ) {
75
75
window . TestingLibraryDom . configure ( config )
76
76
} , _config )
77
77
}
@@ -199,7 +199,7 @@ function createQuery(container: ElementBase, queryName: QueryName) {
199
199
await injectDOMTestingLibrary ( container )
200
200
201
201
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
202
- const result : SerializedQueryResult = await container . executeAsync (
202
+ const result : SerializedQueryResult = await container . parent . executeAsync (
203
203
executeQuery ,
204
204
queryName ,
205
205
container ,
0 commit comments