@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
27 lines • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.O3rPageFixture = void 0;
var tslib_1 = require("tslib");
var component_fixture_1 = require("./component-fixture");
/**
* Implementation of the page fixture dedicated to Playwright.
*/
var O3rPageFixture = /** @class */ (function (_super) {
tslib_1.__extends(O3rPageFixture, _super);
function O3rPageFixture(rootElement) {
return _super.call(this, rootElement) || this;
}
O3rPageFixture.prototype.getTitle = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.rootElement.sourceElement.page.title()];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return O3rPageFixture;
}(component_fixture_1.O3rComponentFixture));
exports.O3rPageFixture = O3rPageFixture;
//# sourceMappingURL=page-fixture.js.map