import fs from 'fs' ; import path from 'path' ; const dataDir = path . resolve ( __dirname , '../__data__/' ) ; export const domWithA11yIssuesBodyID = 'dom-with-issues' ; const fileWithA11yIssues = path . resolve ( dataDir , 'a11yIssues.html' ) ; export const htmlFileWithA11yIssues = 'file:///' + fileWithA11yIssues ; export const domWithA11yIssues = fs . readFileSync ( fileWithA11yIssues ) . toString ( ) ; export const a11yIssuesCount = 5 ; export const exceptionList = { 'document-title' : [ 'html' ] , 'link-name' : [ 'a' ] , } ; export const a11yIssuesCountFiltered = a11yIssuesCount - Object . keys ( exceptionList ) . length ; export const shadowDomID = 'upside-down' ; const fileWithNoA11yIssues = path . resolve ( dataDir , 'noA11yIssues.html' ) ; export const htmlFileWithNoA11yIssues = 'file:///' + fileWithNoA11yIssues ; export const domWithNoA11yIssues = fs . readFileSync ( fileWithNoA11yIssues ) . toString ( ) ; export const domWithNoA11yIssuesChildCount = 4 ; const fileWithVisualA11yIssues = path . resolve ( dataDir , 'a11yIssuesVisual.html' ) ; export const htmlFileWithVisualA11yIssues = 'file:///' + fileWithVisualA11yIssues ; export const domWithVisualA11yIssues = fs . readFileSync ( fileWithVisualA11yIssues ) . toString ( ) ; export const audioURL = 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3' ; export const videoURL = 'https://file-examples-com.github.io/uploads/2020/03/file_example_WEBM_480_900KB.webm' ;