Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
chore(tests): Enables all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jun 30, 2018
1 parent e875c4f commit cbb6368
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions cypress/integration/tab-audio.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('Audio Tab', () => {
selectors.tabs.audio.volume.current().contains('50%')
})

it.only('sets the volume to 100% when the input slider is double Clicked', function () {
it('sets the volume to 100% when the input slider is double Clicked', function () {
cy.window().then(setState(this.episode, this.audio, this.show, this.chapters))
cy.tab('audio')
selectors.tabs.audio.volume.current().contains('100%')
Expand All @@ -55,7 +55,6 @@ describe('Audio Tab', () => {
selectors.tabs.audio.volume.input().dblclick()
selectors.tabs.audio.volume.current().contains('100%')
})

})

describe('Rate', () => {
Expand Down Expand Up @@ -121,9 +120,9 @@ describe('Audio Tab', () => {
cy.window().then(setState(this.episode, this.audio, this.show, this.chapters))
cy.tab('audio')
selectors.tabs.audio.rate.current().contains('100%')
selectors.tabs.audio.rate.input().invoke('val', 0.5).trigger('input')
selectors.tabs.audio.rate.current().contains('50%')
selectors.tabs.audio.volume.input().dblclick()
selectors.tabs.audio.rate.input().invoke('val', 0.25).trigger('input')
selectors.tabs.audio.rate.current().contains('75%')
selectors.tabs.audio.rate.input().dblclick()
selectors.tabs.audio.rate.current().contains('100%')
})

Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/audio/AudioRate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="input-element" :aria-label="$t('A11Y.RATE')">
<label class="spaced" tabindex="0" :aria-label="$t('A11Y.CURRENT_RATE', { rate: toPercent(rate) })">
<label class="spaced" tabindex="0" :aria-label="$t('A11Y.RATE_CURRENT', { rate: toPercent(rate) })">
<span class="input-label">{{ $t('AUDIO.SPEED') }}</span>
<span class="input-label" id="tab-audio--rate--current">{{ toPercent(rate) }}%</span>
</label>
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/audio/AudioVolume.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="input-element" :aria-label="$t('A11Y.VOLUME')">
<label class="spaced" tabindex="0" :aria-label="$t('AUDIO_CURRENT', { volume: toPercent(visualVolume) })">
<label class="spaced" tabindex="0" :aria-label="$t('A11Y.VOLUME_CURRENT', { volume: toPercent(visualVolume) })">
<span class="input-label">{{ $t('AUDIO.VOLUME') }}</span>
<span class="input-label" id="tab-audio--volume--current">{{ toPercent(visualVolume) }}%</span>
</label>
Expand Down

0 comments on commit cbb6368

Please sign in to comment.