@applitools/eyes-playwright
Version:
Applitools Eyes SDK for Playwright
25 lines (24 loc) • 706 B
JavaScript
;
/**
* Navigation State - Shared state for managing active test navigation
*
* This class provides a centralized location for tracking which test is currently
* active in the UI. It eliminates duplicate state between UrlChangeHandler and TestDetailUI.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavigationState = void 0;
class NavigationState {
constructor() {
this._activeTestId = null;
}
get activeTestId() {
return this._activeTestId;
}
setActiveTestId(testId) {
this._activeTestId = testId;
}
clearActiveTestId() {
this._activeTestId = null;
}
}
exports.NavigationState = NavigationState;