UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

55 lines (54 loc) 2.61 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var selectors_1 = require("@awsui/test-utils-core/selectors"); var __1 = require("../"); var styles_selectors_js_1 = require("../../../code-editor/styles.selectors.js"); var CodeEditorWrapper = (function (_super) { __extends(CodeEditorWrapper, _super); function CodeEditorWrapper() { return _super !== null && _super.apply(this, arguments) || this; } CodeEditorWrapper.prototype.findEditor = function () { return this.findByClassName(styles_selectors_js_1.default.editor); }; CodeEditorWrapper.prototype.findNativeTextArea = function () { return this.find('textarea.ace_text-input'); }; CodeEditorWrapper.prototype.findErrorsTab = function () { return this.findByClassName(styles_selectors_js_1.default['tab-button--errors']); }; CodeEditorWrapper.prototype.findWarningsTab = function () { return this.findByClassName(styles_selectors_js_1.default['tab-button--warnings']); }; CodeEditorWrapper.prototype.findSettingsButton = function () { return this.findComponent("." + styles_selectors_js_1.default['context-bar__cog-button'] + " button", __1.ButtonWrapper); }; CodeEditorWrapper.prototype.findStatusBar = function () { return this.findByClassName(styles_selectors_js_1.default['status-bar']); }; CodeEditorWrapper.prototype.findPane = function () { return this.findByClassName(styles_selectors_js_1.default.pane); }; CodeEditorWrapper.prototype.findLoadingScreen = function () { return this.findByClassName(styles_selectors_js_1.default['loading-screen']); }; CodeEditorWrapper.prototype.findErrorScreen = function () { return this.findByClassName(styles_selectors_js_1.default['error-screen']); }; CodeEditorWrapper.rootSelector = styles_selectors_js_1.default['code-editor']; return CodeEditorWrapper; }(selectors_1.ComponentWrapper)); exports.default = CodeEditorWrapper;