/* global cy */ import InfoCard from './infoCard.vue' describe(' 组件', () => { const propsData = { title: '测试', customHeader: true, showClose: true } it('正常显示 title', () => { cy.mount(InfoCard, { propsData }) cy.get('.infoCard h4 span').should('have.text', '测试') }) it('设置显示可关闭按钮', () => { cy.mount(InfoCard, { propsData }) cy.get('.close').should('exist') // cy.get('.infoCard').should('not.exist') }) })