@@ -5,21 +5,20 @@ import { h } from "vue";
55import { mount } from 'cypress/vue' ;
66import VStepperForm from '../../src/plugin/VStepperForm.vue' ;
77import * as DATA from '../templates/testData' ;
8- import { Component } from 'vue' ;
8+ import type { Component } from 'vue' ;
99
1010
11-
12- declare global {
13- namespace Cypress {
14- interface Chainable {
15- baseIconClass ( icon : string ) : string ;
16- getBaseStepperElements ( ) : Chainable ;
17- getDataCy ( value : string ) : Chainable < JQuery < HTMLElement > > ;
18- mount : typeof mount ;
19- mountComponent ( options : any ) : Chainable ;
20- }
21- }
22- }
11+ // declare global {
12+ // namespace Cypress {
13+ // interface Chainable {
14+ // baseIconClass(icon: string): string;
15+ // getBaseStepperElements(): Chainable;
16+ // getDataCy(value: string): Chainable<JQuery<HTMLElement>>;
17+ // mount: typeof mount;
18+ // mountComponent(options: any): Chainable;
19+ // }
20+ // }
21+ // }
2322
2423Cypress . Commands . add ( 'mount' , ( component : Component , options : any = { } ) => {
2524 // Ensure global settings are defined
@@ -87,7 +86,7 @@ Cypress.Commands.add('mountComponent', (options: MountComponentOptions = {}) =>
8786 const localModelValue = { ...answers , ...modelValue } ;
8887
8988 return cy . then ( ( ) => {
90- cy . mount ( VStepperForm , {
89+ cy . mount ( VStepperForm as any , {
9190 props : {
9291 modelValue : localModelValue ,
9392 pages : [ { fields : [ { ...fieldDefault , ...field , } ] , } ] ,
0 commit comments