Skip to content

Commit

Permalink
Fix cypress and UI bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed May 9, 2024
1 parent be331dc commit 184d468
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/sidebars/regulatory_layers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const RegulatoryLayersTitle = styled.div<{
}
}
> div {
.Element-IconBox {
float: right;
margin-top: 4px;
}
Expand Down

0 comments on commit 184d468

Please sign in to comment.