e2ed
Version:
E2E testing framework over Playwright
14 lines (13 loc) • 456 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clickOnStep = clickOnStep;
/**
* Handler for click on single step of TestRun.
* This base client function should not use scope variables (except other base functions).
* @internal
*/
function clickOnStep(element) {
const expanded = element.ariaExpanded === 'true';
// eslint-disable-next-line no-param-reassign
element.ariaExpanded = String(!expanded);
}