@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
28 lines • 1.78 kB
JavaScript
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _inherits from "@babel/runtime/helpers/inherits";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
export var RendererPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
_inherits(RendererPageObject, _InProductTestPageObj);
var _super = _createSuper(RendererPageObject);
function RendererPageObject() {
_classCallCheck(this, RendererPageObject);
return _super.apply(this, arguments);
}
_createClass(RendererPageObject, [{
key: "getContent",
value: function getContent() {
return this.cy.get('.ak-renderer-document');
}
}, {
key: "expectContentReady",
value: function expectContentReady() {
return this.cy.get('.ak-renderer-document').should('be.visible');
}
}]);
return RendererPageObject;
}(InProductTestPageObject);