UNPKG

e2ed

Version:

E2E testing framework over Playwright

12 lines (11 loc) 450 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.click = void 0; const step_1 = require("../step"); /** * Clicks an element. */ const click = (selector, options = {}) => (0, step_1.step)(`Click an element ${selector.description}`, async () => { await selector.getPlaywrightLocator().click(options); }, { payload: { ...options, selector }, type: 5 /* LogEventType.InternalAction */ }); exports.click = click;