/* global cy */ import infoPanel from './index.vue' describe('面板组件', () => { it('面板组件挂载正常', () => { cy.mount(infoPanel, { props: { config: { card: true } }, slots: { default: 'Test content' } }) cy.get('.boardPanel').should('exist') }) it('设置slots显示正常', () => { cy.mount(infoPanel, { props: { config: { card: true } }, slots: { default: 'Test content' } }) cy.get('.boardPanel').should('have.text', 'Test content') }) })