Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/CompletedView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function backToMenu() {
/>

<div class="action-row">
<button class="action-btn" @click="playAgain">Play Again</button>
<button class="action-btn" @click="playAgain">Play Next</button>
<button class="action-btn action-btn--secondary" @click="backToMenu">Back to Menu</button>
</div>
</main>
Expand Down
8 changes: 4 additions & 4 deletions src/components/__tests__/CompletedView.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe('CompletedView', () => {
expect(wrapper.find('[role="progressbar"]').exists()).toBe(true)
})

it('Play Again forwards isFreePlay: true', async () => {
it('Play Next forwards isFreePlay: true', async () => {
const game = completeGame(DEFAULT_OPTIONS, true)
const wrapper = mountView()
await wrapper.find('button:first-child').trigger('click')
Expand All @@ -176,22 +176,22 @@ describe('CompletedView', () => {
})

describe('actions', () => {
it('transitions to playing on Play Again', async () => {
it('transitions to playing on Play Next', async () => {
const game = completeGame()
const wrapper = mountView()
await wrapper.find('button:first-child').trigger('click')
expect(game.session.phase).toBe('playing')
})

it('Play Again preserves quality', async () => {
it('Play Next preserves quality', async () => {
const game = completeGame()
const wrapper = mountView()
await wrapper.find('button:first-child').trigger('click')
assert(game.session.phase === 'playing')
expect(game.session.puzzle.quality).toBe('major')
})

it('Play Again preserves options', async () => {
it('Play Next preserves options', async () => {
const game = completeGame({ noDegreeLabels: true, noPianoKeyboard: false })
const wrapper = mountView()
await wrapper.find('button:first-child').trigger('click')
Expand Down