SC1-4-2-audio-control-audio

From Automated WCAG Monitoring Community Group
Jump to: navigation, search

Back to Success Criterion 1.4.2 Audio Control

Status

Version 1.0: Completed

Description

This test checks that there isn't an automatically started sound after the web page is loaded. If the sound plays automatically this test checks that the sound is no longer than 3 seconds or that there is at the top of the web page a mechanism to control the sound.

Background

Assumptions

  • The test assumes that audio is rendered in the <audio> element. Therefore this test checks exclusive audio content in the <audio> element.
  • The test assumes that video is rendered in the <video> element. Therefore this test checks exclusive video content in the <video> element.
  • This test states that the links or buttons for the mechanism to control the sound is one of the first five links or buttons on the web page. This is more specific then the WCAG documentation.

Test properties

Property Possible values
Test name Audio control
Test requirement SC 1.4.2
Test mode SemiAuto
Test environment DOM
Test subject single web page
User expertise and skills no prior knowledge
User profile Requires hearing

Test procedure

Selector

Test mode: earl:automatic

//*[self::audio or self::video]

Step 1

Test mode: earl:automatic

Check if the <audio> or <video> is paused. Check paused property.

If true, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-pass1
Outcome passed
Pointer position
Info


Else continue with #Step 2

Step 2

Test mode: earl:automatic

Check if the sound is muted. Check muted property.

If true, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-pass2
Outcome passed
Pointer position
Info


Else continue with #Step 3

Step 3

Test mode: earl:automatic

Check that the sound is no longer than 3 seconds. Check duration property is no longer than 3 seconds.

If true, continue with #Step 4

Else continue with #Step 5

Step 4

Test mode: earl:automatic

Check if the sound has a loop. Check loop property.

If true, continue with #Step 5

Else, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-pass3
Outcome passed
Pointer position
Info


Step 5

Test mode: earl:manual

Check if the video plays audio.

User input question

Item presented to the user: Web page with an automatically started sound.

Question: Is there audio playing on the web page?

Answer options: "yes/no"

Help text: There should not be audio playing automatically on the web page loads.

Repair suggestion: none

Properties of the test step:

  • context-sensitive = yes
  • user interaction (with the web content) required = no


If yes, continue with #Step 6.

Else, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-pass4
Outcome passed
Pointer position
Info


Step 6

Test mode: earl:manual

Check if a mechanism to control the sound is provided as one of the first five links or buttons on the web page.

User input question

Item presented to the user: Web page with an automatically started sound.

Question: Does the web page provide a mechanism to control the sound as one of the first five links or buttons?

Answer options: "yes/no"

Help text: A mechanism to pause or stop the video or audio, or control the volume or mute the audio must be available on the web page. The mechanism must be located as one of the first five links or buttons of the web page. This way people (with screen readers) can turn off the sound before reading the web page. To inspect this, use the tab key to navigate through the web page.

Repair suggestion: none

Properties of the test step:

  • context-sensitive = yes
  • user interaction (with the web content) required = yes


If yes, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-pass5
Outcome passed
Pointer position
Info


Else, return:

Property Value
TestCase SC1-4-2-audio-control
Identifier SC1-4-2-audio-control-fail1
Outcome failed
ErrorMessage No mechanism to control the automaticaly started sound available at the top of the web page.
Pointer position
Info