import { Rule } from "@siteimprove/alfa-act" ; import { Element } from "@siteimprove/alfa-dom" ; import { Page } from "@siteimprove/alfa-web" ; import { video } from "../common/applicability/video" ; import { videoTextAlternative } from "../common/expectation/media-text-alternative" ; import { Question } from "../common/question" ; import { Scope } from "../tags" ; export default Rule . Atomic . of < Page , Element , Question . Metadata > ( { uri : "https://alfa.siteimprove.com/rules/sia-r31" , tags : [ Scope . Component ] , evaluate ( { device , document } ) { return { applicability ( ) { return video ( document , device , { audio : { has : true } } ) ; } , expectations ( target ) { return videoTextAlternative ( target , device ) ; } , } ; } , } ) ;