UNPKG

e2ed

Version:

E2E testing framework over Playwright

14 lines (13 loc) 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dispatchEvent = void 0; const log_1 = require("../utils/log"); /** * Dispatches an event over a specified DOM element. */ const dispatchEvent = (selector, eventName, { stabilizationInterval, ...options } = {}) => { (0, log_1.log)('Dispatches an event over a specified element', { ...options, selector, stabilizationInterval }, 5 /* LogEventType.InternalAction */); // TODO return Promise.resolve(); }; exports.dispatchEvent = dispatchEvent;