diff --git a/tests-ui/tests/globalSetup.ts b/tests-ui/tests/globalSetup.ts index a75c33f61..b9ec5dfbe 100644 --- a/tests-ui/tests/globalSetup.ts +++ b/tests-ui/tests/globalSetup.ts @@ -9,6 +9,9 @@ module.exports = async function () { const { nop } = require('../utils/nopProxy') global.enableWebGLCanvas = nop + global.window.HTMLElement.prototype.hasPointerCapture = jest.fn(() => true) + global.window.HTMLElement.prototype.setPointerCapture = jest.fn() + HTMLCanvasElement.prototype.getContext = nop localStorage['Comfy.Settings.Comfy.Logging.Enabled'] = 'false'