Skip to content

Commit

Permalink
chore: fix TransactionNavigation e2e test (#1347)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Viénot <[email protected]>
  • Loading branch information
svienot authored Sep 10, 2024
1 parent 161fc85 commit 3d4c4a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/PlayPauseButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<div class="is-flex is-align-items-center">
<span v-if="!isPlaying" class="h-is-text-size-1 h-is-dense mr-2">REFRESH PAUSED</span>

<img v-if="!isPlaying" alt="Play" src="@/assets/play.svg" @click="handleClick">
<img v-else alt="Pause" src="@/assets/pause.svg" @click="handleClick">
<img v-if="!isPlaying" alt="Play" src="@/assets/play.svg" @click="handleClick" data-cy="playButton">
<img v-else alt="Pause" src="@/assets/pause.svg" @click="handleClick" data-cy="pauseButton">
</div>
</template>

Expand Down
6 changes: 5 additions & 1 deletion tests/e2e/specs/TransactionNavigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ describe('Transaction Navigation', () => {
})

cy.get('.box')
.find('[data-cy="playPauseButton"]')
.find('[data-cy="pauseButton"]')
.click()

cy.get('.box')
.find('[data-cy="playButton"]')
.click()
})

Expand Down

0 comments on commit 3d4c4a4

Please sign in to comment.