File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ vi.mock('vue-data-ui/vue-ui-xy', () => {
113113 }
114114} )
115115
116+ vi . mock ( '~/composables/useCanGoBack' , ( ) => {
117+ return {
118+ useCanGoBack : ( ) => shallowRef ( true ) ,
119+ }
120+ } )
121+
116122// Import components from #components where possible
117123// For server/client variants, we need to import directly to test the specific variant
118124import {
@@ -461,6 +467,7 @@ describe('component accessibility audits', () => {
461467 describe ( 'BackButton' , ( ) => {
462468 it ( 'should have no accessibility violations' , async ( ) => {
463469 const component = await mountSuspended ( BackButton )
470+ expect ( component . find ( 'button' ) . exists ( ) ) . toBe ( true )
464471 const results = await runAxe ( component )
465472 expect ( results . violations ) . toEqual ( [ ] )
466473 } )
You can’t perform that action at this time.
0 commit comments