diff --git a/web/client/components/TOC/TOCItemsSettings.jsx b/web/client/components/TOC/TOCItemsSettings.jsx index 6457d86257f..524f2d2f9b3 100644 --- a/web/client/components/TOC/TOCItemsSettings.jsx +++ b/web/client/components/TOC/TOCItemsSettings.jsx @@ -102,6 +102,7 @@ const TOCItemSettings = (props) => { } + cy-data={`edit-style-btn-${tab.glyph}`} eventKey={tab.id} onClick={() => { onSetTab(tab.id); diff --git a/web/client/components/catalog/Catalog.jsx b/web/client/components/catalog/Catalog.jsx index c0330d4a7e9..82761423498 100644 --- a/web/client/components/catalog/Catalog.jsx +++ b/web/client/components/catalog/Catalog.jsx @@ -306,7 +306,7 @@ class Catalog extends React.Component { this.search({ services: this.props.services, selectedService: this.props.selectedService, searchText: this.props.searchText }); } }} - className={this.props.buttonClassName} key="catalog_search_button" disabled={this.props.loading || !this.isValidServiceSelected()}> + className={this.props.buttonClassName} key="catalog_search_button" cy-data="catalog-search-button" disabled={this.props.loading || !this.isValidServiceSelected()}> ); } @@ -323,6 +323,7 @@ class Catalog extends React.Component { const textSearch = ( this.props.onChangeCatalogMode("edit", false)}> ) : null} - {this.props.canEdit && this.props.onChangeCatalogMode("edit", true)}> + {this.props.canEdit && this.props.onChangeCatalogMode("edit", true)}> } diff --git a/web/client/components/catalog/CatalogServiceEditor.jsx b/web/client/components/catalog/CatalogServiceEditor.jsx index 812bde4783d..e942de59887 100644 --- a/web/client/components/catalog/CatalogServiceEditor.jsx +++ b/web/client/components/catalog/CatalogServiceEditor.jsx @@ -112,17 +112,17 @@ const CatalogServiceEditor = ({ /> - {service && !service.isNew - ? : null } - diff --git a/web/client/components/catalog/RecordItem.jsx b/web/client/components/catalog/RecordItem.jsx index bd5f2c5c184..50c51d92e0c 100644 --- a/web/client/components/catalog/RecordItem.jsx +++ b/web/client/components/catalog/RecordItem.jsx @@ -219,6 +219,7 @@ class RecordItem extends React.Component { disabled: this.state.loading, loading: this.state.loading, glyph: 'plus', + 'cy-data': 'catalog-add-first-result', onClick: () => this.onAddToMap(record) }]), ...(links.length > 0 diff --git a/web/client/components/catalog/editor/MainForm.jsx b/web/client/components/catalog/editor/MainForm.jsx index ef562f28185..7d69a491212 100644 --- a/web/client/components/catalog/editor/MainForm.jsx +++ b/web/client/components/catalog/editor/MainForm.jsx @@ -51,6 +51,7 @@ const DefaultURLEditor = ({ const UrlForm = ( onChangeType(e.target.value)} value={service && service.type} + cy-data="catalog-service-type" componentClass="select"> {serviceTypes.map((type) => )} @@ -211,6 +213,7 @@ export default ({ { return ( +
{showLoader @@ -190,6 +207,7 @@ const DownloadDialog = ({
{ + if (!advancedOptionsOpened) { + return; + } + const srsInput = document.querySelector('.mapstore-downloadwpsoptions-advanced .mapstore-downloadwpsoptions-advanced-menuitem .Select-input input'); + srsInput?.setAttribute('cy-data', 'dataset-export-select-reference-system'); + }, [advancedOptionsOpened, selectedSrs, srsList]); + return ( <> {advancedOptionsVisible &&
-