UNPKG

e2ed

Version:

E2E testing framework over Playwright

15 lines (14 loc) 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clickOnStep = void 0; /** * Handler for click on single step of TestRun. * This base client function should not use scope variables (except other base functions). * @internal */ const clickOnStep = (element) => { const expanded = element.ariaExpanded === 'true'; // eslint-disable-next-line no-param-reassign element.ariaExpanded = String(!expanded); }; exports.clickOnStep = clickOnStep;