import { checkNavbarLoaded } from "../utils" ; import "@percy/cypress" ; Cypress . Commands . overwrite ( "percySnapshot" , ( originalFn , snapshotName ) => { checkNavbarLoaded ( ) ; originalFn ( snapshotName ) ; } ) ;