UNPKG

@serenity-js/web

Version:

Serenity/JS Screenplay Pattern library offering a flexible, web driver-agnostic approach for interacting with web-based user interfaces and components, suitable for various testing contexts

24 lines 880 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbsentModalDialog = void 0; const core_1 = require("@serenity-js/core"); const ModalDialog_1 = require("./ModalDialog"); /** * `AbsentModalDialog` is a [null object](https://en.wikipedia.org/wiki/Null_object_pattern) * representing a [`ModalDialog`](https://serenity-js.org/api/web/class/ModalDialog/) that hasn't appeared yet. * * ## Learn more * - [`ModalDialog`](https://serenity-js.org/api/web/class/ModalDialog/) * * @group Models */ class AbsentModalDialog extends ModalDialog_1.ModalDialog { async isPresent() { return false; } async message() { throw new core_1.LogicError(`Can't retrieve the message of a modal dialog that hasn't been handled yet`); } } exports.AbsentModalDialog = AbsentModalDialog; //# sourceMappingURL=AbsentModalDialog.js.map