import { Methods } from '../methods/methods.interface' ; import { InstanceData } from '../methods/instanceData.interfaces' ; import { Folders } from '../base.interface' ; import drawTabbableOnCanvas from "../clientSideScripts/drawTabbableOnCanvas" ; import { CheckTabbableOptions } from "./tabbable.interfaces" ; import removeElementFromDom from "../clientSideScripts/removeElementFromDom" ; import checkFullPageScreen from "./checkFullPageScreen" ; import { ImageCompareResult } from ".." ; /**
 * Compare an image with all tab executions
 */ export default async function checkTabbablePage ( methods , instanceData , folders , tag , checkTabbableOptions ) { await methods . executor ( drawTabbableOnCanvas , checkTabbableOptions . wic . tabbableOptions ) ; const fullPageCompareData = await checkFullPageScreen ( methods , instanceData , folders , tag , checkTabbableOptions ) ; await methods . executor ( removeElementFromDom , 'wic-tabbable-canvas' ) ; return fullPageCompareData ; }