/* global cy */ import FuzzyMatching from './fuzzyMatching.vue' describe(' 组件', () => { it('组件挂载', () => { const getfuzzyMatching = cy.stub() cy.mount(FuzzyMatching, { props: { totalData: [ { name: 'search term' }, { name: 'search22' }, { name: 'search333' } ], method: getfuzzyMatching } }) cy.get('input[placeholder="请输入内容"]').type('search term') cy.get('input[placeholder="请输入内容"]').trigger('keydown') // cy.get('@getfuzzyMatching').should('have.been.called') // cy.wrap(getfuzzyMatching).should('have.been.called') }) })