diff --git a/frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts b/frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts index cf355cf4b3..daf7b983f8 100644 --- a/frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts +++ b/frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts @@ -441,7 +441,7 @@ context('Sidebars > Regulatory Layers', () => { // Unselect one of the "Corse - Chaluts" regulation zones cy.contains('Corse - Chaluts').click() - cy.contains('Interdiction temporaire').parent().find('span').last().find('svg').last().click() + cy.contains('Interdiction temporaire').parent().find('[title="Supprimer la zone de ma sélection"]').click() cy.get('.regulatory').toMatchImageSnapshot({ screenshotConfig: { @@ -482,7 +482,7 @@ context('Sidebars > Regulatory Layers', () => { cy.contains('Création et Réglementation de zone').should('be.visible') // Unselect one of the "Corse - Chaluts" regulation zones - cy.contains('Interdiction temporaire').parent().find('span').last().find('svg').last().click() + cy.contains('Interdiction temporaire').parent().find('[title="Supprimer la zone de ma sélection"]').click() // Select all the "Armor CSJ Dragues" regulation zones (there is only 1) cy.getDataCy('regulatory-search-clean-input').click() diff --git a/frontend/src/features/AdministrativeZone/components/AdministrativeZones/index.tsx b/frontend/src/features/AdministrativeZone/components/AdministrativeZones/index.tsx index 6c37f307da..d3fd4dcdd5 100644 --- a/frontend/src/features/AdministrativeZone/components/AdministrativeZones/index.tsx +++ b/frontend/src/features/AdministrativeZone/components/AdministrativeZones/index.tsx @@ -141,7 +141,7 @@ const SectionTitle = styled.div<{ border-bottom-left-radius: ${p => (p.isOpened ? '0' : '2px')}; border-bottom-right-radius: ${p => (p.isOpened ? '0' : '2px')}; - > div { + .Element-IconBox { float: right; margin-top: 4px; } diff --git a/frontend/src/features/BaseMap/components/BaseMaps/index.tsx b/frontend/src/features/BaseMap/components/BaseMaps/index.tsx index 3538ebe5c0..5189ef8ba0 100644 --- a/frontend/src/features/BaseMap/components/BaseMaps/index.tsx +++ b/frontend/src/features/BaseMap/components/BaseMaps/index.tsx @@ -84,7 +84,7 @@ const Title = styled.div<{ border-bottom-left-radius: ${p => (p.isShowed ? '0' : '2px')}; border-bottom-right-radius: ${p => (p.isShowed ? '0' : '2px')}; - > div { + .Element-IconBox { float: right; margin-top: 4px; } diff --git a/frontend/src/features/CustomZone/components/CustomZones/index.tsx b/frontend/src/features/CustomZone/components/CustomZones/index.tsx index 9532a71e9e..6e93f30df9 100644 --- a/frontend/src/features/CustomZone/components/CustomZones/index.tsx +++ b/frontend/src/features/CustomZone/components/CustomZones/index.tsx @@ -128,7 +128,7 @@ const Title = styled.div<{ border-bottom-left-radius: ${p => (p.isOpened ? '0' : '2px')}; border-bottom-right-radius: ${p => (p.isOpened ? '0' : '2px')}; - > div { + .Element-IconBox { float: right; margin-top: 4px; } diff --git a/frontend/src/features/Regulation/components/RegulatoryZones/index.tsx b/frontend/src/features/Regulation/components/RegulatoryZones/index.tsx index 1f4b7acf1b..149fffc47d 100644 --- a/frontend/src/features/Regulation/components/RegulatoryZones/index.tsx +++ b/frontend/src/features/Regulation/components/RegulatoryZones/index.tsx @@ -171,7 +171,7 @@ const RegulatoryLayersTitle = styled.div<{ } } - > div { + .Element-IconBox { float: right; margin-top: 4px; }