Skip to content

Commit

Permalink
[Test] fix test e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Jan 8, 2024
1 parent 7f27beb commit 35c04dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/side_window/reporting/reportings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ context('Reportings', () => {
cy.get('*[data-cy="status-filter-Archivés"]').click()

cy.get('*[data-cy="edit-reporting-5"]').click({ force: true })
cy.get('*[data-cy="reporting-reduce-or-expand-button"]').click()
cy.get('*[data-cy="reporting-reduce-or-expand-button-5"]').click()

// create new reporting
cy.clickButton('Ajouter un nouveau signalement')
Expand All @@ -66,7 +66,7 @@ context('Reportings', () => {
cy.get('*[data-cy="reporting-target-type"]').click({ force: true })
cy.get('div[role="option"]').contains('Personne morale').click()

cy.get('*[data-cy="reporting-reduce-or-expand-button"]').click()
cy.get('*[data-cy="reporting-reduce-or-expand-button-new-1"]').click()

// create another new reporting
cy.clickButton('Ajouter un nouveau signalement')
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/Reportings/ReportingForm/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function Header({
<ReportingChevronIcon
$isOpen={isOpen}
accent={Accent.TERTIARY}
data-cy="reporting-reduce-or-expand-button"
data-cy={`reporting-reduce-or-expand-button-${reporting?.id}`}
Icon={Icon.Chevron}
onClick={reduceOrExpandReporting}
/>
Expand Down

0 comments on commit 35c04dd

Please sign in to comment.