diff --git a/test/integration/scripting_spec.js b/test/integration/scripting_spec.js index 43594d577..f78fb81c5 100644 --- a/test/integration/scripting_spec.js +++ b/test/integration/scripting_spec.js @@ -696,14 +696,9 @@ describe("Interaction", () => { ); await page.click(`[data-annotation-id='${id}R']`); + const selector = ref.replace("\\", "\\\\"); await page.waitForFunction( - (_ref, _current, _propName) => - getComputedStyle(document.querySelector(_ref))[_propName] !== - _current, - {}, - ref, - current, - propName + `getComputedStyle(document.querySelector("${selector}"))["${propName}"] !== "${current}"` ); const color = await page.$eval( @@ -755,11 +750,7 @@ describe("Interaction", () => { await page.keyboard.press("Tab"); await page.waitForFunction( - _prev => - getComputedStyle(document.querySelector("#\\31 71R")).value !== - _prev, - {}, - prev + `getComputedStyle(document.querySelector("#\\\\31 71R")).value !== "${prev}"` ); sum += val;