From 209482b83c6d4873894d84178df93623d6774888 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:43:59 -0800 Subject: [PATCH 1/4] chore: import new wave.js --- package-lock.json | 63 +++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 32 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb7aac39..31302b45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1989,9 +1989,8 @@ } }, "@exabyte-io/wave.js": { - "version": "2024.2.21-0", - "resolved": "https://registry.npmjs.org/@exabyte-io/wave.js/-/wave.js-2024.2.21-0.tgz", - "integrity": "sha512-4IiPyokmkH6c3U+OBdSc6dCTS5/QzLQMeuyGiyCwbb6Te4WG34c3Cik45SyauAkghobkopz+o0BNgm7JGzsHOQ==", + "version": "git+https://github.com/exabyte-io/wave.js.git#cd80ad586b094a8b6f5c334f19c2e765da0b180a", + "from": "git+https://github.com/exabyte-io/wave.js.git#cd80ad586b094a8b6f5c334f19c2e765da0b180a", "requires": { "@babel/cli": "7.16.0", "@babel/core": "7.16.0", @@ -2022,6 +2021,35 @@ "typescript": "^4.9.5", "underscore": "^1.8.3", "underscore.string": "^3.3.4" + }, + "dependencies": { + "acorn": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.0.1.tgz", + "integrity": "sha512-goyeqJaYIEon7Xw+ltfheM2MSoZ1lDffIYDBMP9UyUDYhsBiw1dAV07wlUGwRYntyvlxGpk/Avk58Ff9clZuUw==" + }, + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha512-AWwVMNxwhN8+NIPQzAQZCm7RkLC4RbM3B1OobMuyp3i+w73X57KCKaVIxaRZb+DYCojq7rspo+fmuQfAboyhFg==" + }, + "three": { + "version": "npm:@exabyte-io/three@2023.8.23-0", + "resolved": "https://registry.npmjs.org/@exabyte-io/three/-/three-2023.8.23-0.tgz", + "integrity": "sha512-oKyhZo7Phq9Lgxl5zIYPdoPC3fZYWHqHioiTvWYe+gI25i/3U1sIuiEcQ7Oig9PpgRp+cJvpQaRw6NZXN3A/pA==", + "requires": { + "@codemirror/commands": "^6.1.0", + "@codemirror/lang-javascript": "^6.0.2", + "@codemirror/lint": "^6.0.0", + "@codemirror/state": "^6.1.1", + "@codemirror/theme-one-dark": "^6.0.0", + "@codemirror/view": "^6.2.1", + "acorn": "1.0.1", + "codemirror": "^6.0.1", + "esprima": "^3.1.3", + "signals": "1.0.0" + } + } } }, "@floating-ui/core": { @@ -20080,35 +20108,6 @@ "thenify": ">= 3.1.0 < 4" } }, - "three": { - "version": "npm:@exabyte-io/three@2023.8.23-0", - "resolved": "https://registry.npmjs.org/@exabyte-io/three/-/three-2023.8.23-0.tgz", - "integrity": "sha512-oKyhZo7Phq9Lgxl5zIYPdoPC3fZYWHqHioiTvWYe+gI25i/3U1sIuiEcQ7Oig9PpgRp+cJvpQaRw6NZXN3A/pA==", - "requires": { - "@codemirror/commands": "^6.1.0", - "@codemirror/lang-javascript": "^6.0.2", - "@codemirror/lint": "^6.0.0", - "@codemirror/state": "^6.1.1", - "@codemirror/theme-one-dark": "^6.0.0", - "@codemirror/view": "^6.2.1", - "acorn": "1.0.1", - "codemirror": "^6.0.1", - "esprima": "^3.1.3", - "signals": "1.0.0" - }, - "dependencies": { - "acorn": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-1.0.1.tgz", - "integrity": "sha512-goyeqJaYIEon7Xw+ltfheM2MSoZ1lDffIYDBMP9UyUDYhsBiw1dAV07wlUGwRYntyvlxGpk/Avk58Ff9clZuUw==" - }, - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha512-AWwVMNxwhN8+NIPQzAQZCm7RkLC4RbM3B1OobMuyp3i+w73X57KCKaVIxaRZb+DYCojq7rspo+fmuQfAboyhFg==" - } - } - }, "throat": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", diff --git a/package.json b/package.json index 8a302447..bc759212 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@babel/runtime-corejs2": "7.16.7", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@exabyte-io/wave.js": "2024.2.21-0", + "@exabyte-io/wave.js": "https://github.com/exabyte-io/wave.js#cd80ad586b094a8b6f5c334f19c2e765da0b180a", "@mui/icons-material": "^5.11.0", "@mui/material": "^5.11.9", "@mui/styles": "^5.11.7", From 43282ca7626c8271810dcc1df84fc28d462f05c1 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:50:09 -0800 Subject: [PATCH 2/4] chore: import wave with changs --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 31302b45..da83d240 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1989,8 +1989,8 @@ } }, "@exabyte-io/wave.js": { - "version": "git+https://github.com/exabyte-io/wave.js.git#cd80ad586b094a8b6f5c334f19c2e765da0b180a", - "from": "git+https://github.com/exabyte-io/wave.js.git#cd80ad586b094a8b6f5c334f19c2e765da0b180a", + "version": "git+https://github.com/exabyte-io/wave.js.git#e4435c7727972d5ec1da2833f738024ef15e026a", + "from": "git+https://github.com/exabyte-io/wave.js.git#e4435c7727972d5ec1da2833f738024ef15e026a", "requires": { "@babel/cli": "7.16.0", "@babel/core": "7.16.0", diff --git a/package.json b/package.json index bc759212..9e91c318 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@babel/runtime-corejs2": "7.16.7", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@exabyte-io/wave.js": "https://github.com/exabyte-io/wave.js#cd80ad586b094a8b6f5c334f19c2e765da0b180a", + "@exabyte-io/wave.js": "https://github.com/exabyte-io/wave.js#e4435c7727972d5ec1da2833f738024ef15e026a", "@mui/icons-material": "^5.11.0", "@mui/material": "^5.11.9", "@mui/styles": "^5.11.7", From 00da9d141824082eaf700e1f278a918e428421db Mon Sep 17 00:00:00 2001 From: Kostiantyn Dvornik Date: Mon, 15 Apr 2024 20:01:47 +0300 Subject: [PATCH 3/4] fix: transpile --- .../PythonTransformation.d.ts | 17 ---- .../advanced_geometry/PythonTransformation.js | 27 ------ .../components/include/SAlertContentTmpl.d.ts | 20 ----- dist/components/include/SAlertContentTmpl.js | 18 ---- .../include/StandataImportModal.d.ts | 20 ----- .../components/include/StandataImportModal.js | 84 ------------------- .../components/include/material-ui/theme.d.ts | 2 - dist/components/include/material-ui/theme.js | 34 -------- .../Then I see DefaultImportModalDialog.js | 12 --- ...faultImportModalDialog should be closed.js | 12 --- ...rpolated set with # intermediate images.js | 12 --- .../When I open DefaultImportModalDialog.js | 12 --- .../support/widgets/alert/s_alert_widget.js | 35 -------- package.json | 2 +- 14 files changed, 1 insertion(+), 306 deletions(-) delete mode 100644 dist/components/3d_editor/advanced_geometry/PythonTransformation.d.ts delete mode 100644 dist/components/3d_editor/advanced_geometry/PythonTransformation.js delete mode 100644 dist/components/include/SAlertContentTmpl.d.ts delete mode 100644 dist/components/include/SAlertContentTmpl.js delete mode 100644 dist/components/include/StandataImportModal.d.ts delete mode 100644 dist/components/include/StandataImportModal.js delete mode 100644 dist/components/include/material-ui/theme.d.ts delete mode 100644 dist/components/include/material-ui/theme.js delete mode 100644 dist/tests-legacy/cucumber/support/step_definitions/Then I see DefaultImportModalDialog.js delete mode 100644 dist/tests-legacy/cucumber/support/step_definitions/Then the DefaultImportModalDialog should be closed.js delete mode 100644 dist/tests-legacy/cucumber/support/step_definitions/When I genarate interpolated set with # intermediate images.js delete mode 100644 dist/tests-legacy/cucumber/support/step_definitions/When I open DefaultImportModalDialog.js delete mode 100644 dist/tests-legacy/cucumber/support/widgets/alert/s_alert_widget.js diff --git a/dist/components/3d_editor/advanced_geometry/PythonTransformation.d.ts b/dist/components/3d_editor/advanced_geometry/PythonTransformation.d.ts deleted file mode 100644 index a25d12e5..00000000 --- a/dist/components/3d_editor/advanced_geometry/PythonTransformation.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export default PythonTransformation; -declare class PythonTransformation extends React.Component { - constructor(props: any); - state: { - pyodide: null; - }; - onLoad: (pyodideInstance: any) => void; - render(): React.JSX.Element; -} -declare namespace PythonTransformation { - namespace propTypes { - const show: PropTypes.Validator; - const onHide: PropTypes.Validator<(...args: any[]) => any>; - } -} -import React from "react"; -import PropTypes from "prop-types"; diff --git a/dist/components/3d_editor/advanced_geometry/PythonTransformation.js b/dist/components/3d_editor/advanced_geometry/PythonTransformation.js deleted file mode 100644 index 584ce305..00000000 --- a/dist/components/3d_editor/advanced_geometry/PythonTransformation.js +++ /dev/null @@ -1,27 +0,0 @@ -import PyodideLoader from "@exabyte-io/cove.js/dist/other/pyodide"; -import Dialog from "@mui/material/Dialog"; -import PropTypes from "prop-types"; -import React from "react"; -class PythonTransformation extends React.Component { - constructor(props) { - super(props); - this.onLoad = (pyodideInstance) => { - this.setState({ pyodide: pyodideInstance }); - }; - this.state = { - pyodide: null, - }; - } - render() { - const { show, onHide } = this.props; - return (React.createElement(React.Fragment, null, - React.createElement(PyodideLoader, { onLoad: this.onLoad, triggerLoad: show }), - React.createElement(Dialog, { open: show, onClose: onHide, fullWidth: true, maxWidth: "lg", PaperProps: { sx: { width: "60vw", height: "60vh", padding: "20px" } } }, - React.createElement("div", null, this.state.pyodide ? "Pyodide is loaded" : "Pyodide is not loaded")))); - } -} -PythonTransformation.propTypes = { - show: PropTypes.bool.isRequired, - onHide: PropTypes.func.isRequired, -}; -export default PythonTransformation; diff --git a/dist/components/include/SAlertContentTmpl.d.ts b/dist/components/include/SAlertContentTmpl.d.ts deleted file mode 100644 index 83fc66e9..00000000 --- a/dist/components/include/SAlertContentTmpl.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export default SAlertContentTmpl; -declare function SAlertContentTmpl({ id, classNames, condition, styles, message, handleClose, }: { - id: any; - classNames: any; - condition: any; - styles: any; - message: any; - handleClose: any; -}): import("react/jsx-runtime").JSX.Element; -declare namespace SAlertContentTmpl { - namespace propTypes { - const id: PropTypes.Validator; - const classNames: PropTypes.Validator; - const condition: PropTypes.Validator; - const styles: PropTypes.Validator; - const message: PropTypes.Validator>>; - const handleClose: PropTypes.Validator<(...args: any[]) => any>; - } -} -import PropTypes from "prop-types"; diff --git a/dist/components/include/SAlertContentTmpl.js b/dist/components/include/SAlertContentTmpl.js deleted file mode 100644 index ecdb9d8a..00000000 --- a/dist/components/include/SAlertContentTmpl.js +++ /dev/null @@ -1,18 +0,0 @@ -import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; -/* eslint-disable jsx-a11y/label-has-associated-control, jsx-a11y/control-has-associated-label */ -import PropTypes from "prop-types"; -import React from "react"; -const SAlertContentTmpl = function SAlertContentTmpl({ id, classNames, condition, styles, message, handleClose, }) { - return (_jsxs("div", { id: id, style: styles, className: `alert alert-${condition} ${classNames} growl-animated animated`, children: [_jsx("button", { type: "button", "data-growl": "dismiss", className: "close s-alert-close", onClick: handleClose }), _jsx("span", { children: message })] })); -}; -SAlertContentTmpl.propTypes = { - id: PropTypes.string.isRequired, - classNames: PropTypes.string.isRequired, - condition: PropTypes.string.isRequired, - // eslint-disable-next-line react/forbid-prop-types - styles: PropTypes.object.isRequired, - // eslint-disable-next-line react/forbid-prop-types - message: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired, - handleClose: PropTypes.func.isRequired, -}; -export default SAlertContentTmpl; diff --git a/dist/components/include/StandataImportModal.d.ts b/dist/components/include/StandataImportModal.d.ts deleted file mode 100644 index fe416640..00000000 --- a/dist/components/include/StandataImportModal.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { MaterialSchema } from "@exabyte-io/code.js/dist/types"; -import { Made } from "@exabyte-io/made.js"; -import React from "react"; -interface StandataImportModalProps { - show: boolean; - onClose: () => void; - onSubmit: (materials: Made.Material[]) => void; - defaultMaterialConfigs: MaterialSchema[]; -} -interface StandataImportModalState { - selectedMaterialConfigs: MaterialSchema[]; -} -declare class StandataImportModal extends React.Component { - constructor(props: StandataImportModalProps); - handleMaterialSelect: (materialConfigs: MaterialSchema[] | []) => void; - handleRemoveMaterial: (index: number) => void; - addMaterials: () => void; - render(): import("react/jsx-runtime").JSX.Element; -} -export default StandataImportModal; diff --git a/dist/components/include/StandataImportModal.js b/dist/components/include/StandataImportModal.js deleted file mode 100644 index d6575dd2..00000000 --- a/dist/components/include/StandataImportModal.js +++ /dev/null @@ -1,84 +0,0 @@ -import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; -import Dialog from "@exabyte-io/cove.js/dist/mui/components/dialog/Dialog"; -import IconByName from "@exabyte-io/cove.js/dist/mui/components/icon/IconByName"; -import { Made } from "@exabyte-io/made.js"; -import CheckBoxOutlineBlank from "@mui/icons-material/CheckBoxOutlineBlank"; -import Autocomplete from "@mui/material/Autocomplete"; -import Checkbox from "@mui/material/Checkbox"; -import Grid from "@mui/material/Grid"; -import IconButton from "@mui/material/IconButton"; -import TextField from "@mui/material/TextField"; -import { DataGrid } from "@mui/x-data-grid"; -import React from "react"; -class StandataImportModal extends React.Component { - constructor(props) { - super(props); - this.handleMaterialSelect = (materialConfigs) => { - this.setState({ - selectedMaterialConfigs: [...materialConfigs], - }); - }; - this.handleRemoveMaterial = (index) => { - this.setState((prevState) => ({ - selectedMaterialConfigs: prevState.selectedMaterialConfigs.filter((_, i) => i !== index), - })); - }; - this.addMaterials = () => { - const { selectedMaterialConfigs } = this.state; - const materials = selectedMaterialConfigs.map((config) => new Made.Material(config)); - const { onSubmit } = this.props; - onSubmit(materials); - this.setState({ selectedMaterialConfigs: [] }); - }; - this.state = { - selectedMaterialConfigs: [], - }; - } - render() { - const { show, onClose, defaultMaterialConfigs } = this.props; - const { selectedMaterialConfigs } = this.state; - const selectedMaterials = selectedMaterialConfigs.map((config) => new Made.Material(config)); - const columns = [ - { field: "name", headerName: "Name", flex: 1, headerAlign: "center", align: "center" }, - { - field: "lattice", - headerName: "Lattice", - flex: 1, - headerAlign: "center", - align: "center", - }, - { - field: "formula", - headerName: "Formula", - flex: 1, - headerAlign: "center", - align: "center", - }, - { - field: "actions", - headerName: "Actions", - headerAlign: "center", - align: "center", - flex: 1, - sortable: false, - filterable: false, - disableColumnMenu: true, - renderCell: (params) => (_jsx(IconButton, { id: `${params.row.name.replace(/\s+/g, "-")}-remove-button`, color: "inherit", onClick: () => this.handleRemoveMaterial(params.row.id), children: _jsx(IconByName, { name: "actions.remove", fontSize: "small" }) })), - }, - ]; - return (_jsx(Dialog, { open: show, id: "standataImportModalDialog", title: "Import from Standata", onClose: onClose, onSubmit: this.addMaterials, children: _jsxs(Grid, { container: true, spacing: 2, children: [_jsx(Grid, { item: true, xs: 12, children: _jsx(Autocomplete, { multiple: true, id: "materials-autocomplete", "data-tid": "materials-selector", disableCloseOnSelect: true, options: defaultMaterialConfigs || [], value: selectedMaterialConfigs || null, getOptionLabel: (material) => material.name || "Not available", onChange: (event, newValues) => this.handleMaterialSelect(newValues), renderOption: (props, option, { selected }) => ( - // eslint-disable-next-line react/jsx-props-no-spreading - _jsxs("li", { ...props, "data-tid": "select-material", children: [_jsx(Checkbox, { icon: _jsx(CheckBoxOutlineBlank, { fontSize: "small" }), checkedIcon: _jsx(IconByName, { name: "shapes.check", fontSize: "small" }), checked: selected }), option.name] })), renderInput: (params) => (_jsx(TextField - // eslint-disable-next-line react/jsx-props-no-spreading - , { ...params, label: "Selected Materials", placeholder: "Select materials" })) }) }), _jsx(Grid, { item: true, xs: 12, style: { minHeight: 300 }, children: _jsx(DataGrid, { "data-name": "data-grid", hideFooter: true, rows: selectedMaterials.map((material, index) => { - var _a; - return ({ - name: material.name, - lattice: ((_a = material.lattice) === null || _a === void 0 ? void 0 : _a.type) || "TRI", - formula: material.formula || "Not available", - id: index, - }); - }), columns: columns }) })] }) })); - } -} -export default StandataImportModal; diff --git a/dist/components/include/material-ui/theme.d.ts b/dist/components/include/material-ui/theme.d.ts deleted file mode 100644 index 9abe2c1c..00000000 --- a/dist/components/include/material-ui/theme.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const DarkMaterialUITheme: import("@mui/material").Theme; -export const LightMaterialUITheme: import("@mui/material").Theme; diff --git a/dist/components/include/material-ui/theme.js b/dist/components/include/material-ui/theme.js deleted file mode 100644 index 3ee97970..00000000 --- a/dist/components/include/material-ui/theme.js +++ /dev/null @@ -1,34 +0,0 @@ -import { createTheme } from "@mui/material"; -// adopted from: https://material-ui.com/customization/themes/#theme-configuration-variables -const DarkThemeConfig = { - palette: { - // Switching the dark mode on is a single property value change. - mode: "dark", - }, - typography: { - // Tell Material-UI what's the font-size on the html element is. - htmlFontSize: 12, - }, - overrides: { - MuiFormControl: { - root: { - margin: 10, - minWidth: 120, - }, - }, - MuiOutlinedInput: { - root: { - "& .MuiOutlinedInput-notchedOutline": { - border: "none", - }, - }, - }, - }, -}; -export const DarkMaterialUITheme = createTheme(DarkThemeConfig); -export const LightMaterialUITheme = createTheme({ - typography: DarkThemeConfig.typography, - palette: { - mode: "light", - }, -}); diff --git a/dist/tests-legacy/cucumber/support/step_definitions/Then I see DefaultImportModalDialog.js b/dist/tests-legacy/cucumber/support/step_definitions/Then I see DefaultImportModalDialog.js deleted file mode 100644 index 50b41582..00000000 --- a/dist/tests-legacy/cucumber/support/step_definitions/Then I see DefaultImportModalDialog.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -var _material_designer_page = require("../widgets/material_designer_page"); -function _default() { - this.Then(/^I see UploadDialog$/, () => { - _material_designer_page.materialDesignerPage.designerWidget.defaultImportModalDialog.isVisible(); - }); -} \ No newline at end of file diff --git a/dist/tests-legacy/cucumber/support/step_definitions/Then the DefaultImportModalDialog should be closed.js b/dist/tests-legacy/cucumber/support/step_definitions/Then the DefaultImportModalDialog should be closed.js deleted file mode 100644 index 28ed304f..00000000 --- a/dist/tests-legacy/cucumber/support/step_definitions/Then the DefaultImportModalDialog should be closed.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -var _material_designer_page = require("../widgets/material_designer_page"); -function _default() { - this.Then(/^the UploadDialog should be closed$/, () => { - _material_designer_page.materialDesignerPage.designerWidget.defaultImportModalDialog.waitForDisappear(); - }); -} \ No newline at end of file diff --git a/dist/tests-legacy/cucumber/support/step_definitions/When I genarate interpolated set with # intermediate images.js b/dist/tests-legacy/cucumber/support/step_definitions/When I genarate interpolated set with # intermediate images.js deleted file mode 100644 index 97905e5e..00000000 --- a/dist/tests-legacy/cucumber/support/step_definitions/When I genarate interpolated set with # intermediate images.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -var _material_designer_page = require("../widgets/material_designer_page"); -function _default() { - this.When(/^I generate interpolated set with "([^"]*)" intermediate images$/, nImages => { - _material_designer_page.materialDesignerPage.designerWidget.generateInterpolatedSet(parseInt(nImages)); - }); -} \ No newline at end of file diff --git a/dist/tests-legacy/cucumber/support/step_definitions/When I open DefaultImportModalDialog.js b/dist/tests-legacy/cucumber/support/step_definitions/When I open DefaultImportModalDialog.js deleted file mode 100644 index cd55a095..00000000 --- a/dist/tests-legacy/cucumber/support/step_definitions/When I open DefaultImportModalDialog.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -var _material_designer_page = require("../widgets/material_designer_page"); -function _default() { - this.When(/^I open UploadDialog/, () => { - _material_designer_page.materialDesignerPage.designerWidget.headerMenu.selectMenuItemByNameAndItemNumber("Input/Output", 1); - }); -} \ No newline at end of file diff --git a/dist/tests-legacy/cucumber/support/widgets/alert/s_alert_widget.js b/dist/tests-legacy/cucumber/support/widgets/alert/s_alert_widget.js deleted file mode 100644 index 31b0f356..00000000 --- a/dist/tests-legacy/cucumber/support/widgets/alert/s_alert_widget.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.SAlertWidget = void 0; -var _logger = require("../../logger"); -var _selectors = require("../../selectors"); -var _utils = require("../../utils"); -var _alert_widget = require("./alert_widget"); -class SAlertWidget extends _alert_widget.AlertWidget { - getAlertSelectorByType(type) { - return this.getWrappedSelector(_selectors.SELECTORS.sAlertWidget.alertByType(type), ""); - } - isVisibleByType(type) { - return exabrowser.isVisible(this.getAlertSelectorByType(type)); - } - isVisibleSuccess() { - return this.isVisibleByType("success"); - } - close() { - exabrowser.scrollAndClick(this.getWrappedSelector(_selectors.SELECTORS.sAlertWidget.closeButton)); - } - closeAllSuccess() { - (0, _utils.retry)(() => { - if (this.isVisible()) { - _logger.logger.debug("sAlertSuccess closed"); - this.close(); - // eslint-disable-next-line no-throw-literal - throw "Something is wrong: there should be no sAlertSuccess shown!"; - } - }); - } -} -exports.SAlertWidget = SAlertWidget; \ No newline at end of file diff --git a/package.json b/package.json index f2bad72c..315df50b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "prepare": "husky install", "transpile-tests": "babel --presets @babel/preset-env --out-dir dist/tests-legacy/cucumber tests-legacy/cucumber", "transpile": "tsc && npm run copy-css", - "copy-css": "cp src/stylesheets/* dist/stylesheets/", + "copy-css": "mkdir -p dist/stylesheets && cp src/stylesheets/* dist/stylesheets/", "test": "echo 'Tests are in the tests subfolder. Use Node 20 (`nvm use 20`) and run `npm i` && `npm test` there'", "lint": "eslint src tests-legacy && prettier --write src tests-legacy", "lint:fix": "eslint src tests-legacy --fix && prettier --write src tests-legacy", From 6ed033e7307d2dc81c73c23d8601be57dc80719d Mon Sep 17 00:00:00 2001 From: Kostiantyn Dvornik Date: Wed, 17 Apr 2024 16:38:18 +0300 Subject: [PATCH 4/4] chore: update wave version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 315df50b..9f43425d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@babel/runtime-corejs2": "7.16.7", "@emotion/react": "^11.10.5", "@emotion/styled": "^11.10.5", - "@exabyte-io/wave.js": "https://github.com/exabyte-io/wave.js#050350356db3fdd03dde5d4c4ee58a07eb4de4d4", + "@exabyte-io/wave.js": "2024.4.17-0", "@mui/icons-material": "^5.11.0", "@mui/material": "^5.11.9", "@mui/styles": "^5.11.7",