Skip to content

Commit

Permalink
chore: delete sth
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang committed Oct 28, 2024
1 parent 280e759 commit 8b6c3d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
58 changes: 0 additions & 58 deletions cypress/component/Actionsheet.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,61 +65,3 @@ it('props test has value ', async () => {
el.should('have.class', 'danger')
})
})

// it('props test choose item and show value', async () => {
// const choose = vi.fn()
// mount(
// <ActionSheet
// visible
// title="弹层标题"
// description="弹层描述信息"
// cancelText="关闭弹层"
// options={menulist}
// onSelect={choose}
// />
// )
// const chooseTagEle = container.querySelectorAll(
// '.nut-actionsheet-list .nut-actionsheet-item'
// )[0]
// fireEvent.click(chooseTagEle)
// await waitFor(() => expect(choose.mock.calls[0][0].name).toEqual('选项一'))
// })

// it('props test disabled item has disabled classes', async () => {
// const choose = vi.fn()
// mount(
// <ActionSheet
// visible
// title="弹层标题"
// description="弹层描述信息"
// cancelText="关闭弹层"
// options={menulist}
// onSelect={choose}
// />
// )
// const options = container.querySelectorAll(
// '.nut-actionsheet-list .nut-actionsheet-item'
// )
// const disableItem = options[1]
// expect(disableItem).toHaveClass('nut-actionsheet-item disabled')
// })

// it('props test click disabled item and not call fn', async () => {
// const choose = vi.fn()
// mount(
// <ActionSheet
// visible
// title="弹层标题"
// description="弹层描述信息"
// cancelText="关闭弹层"
// options={menulist}
// onSelect={choose}
// />
// )
// const options = container.querySelectorAll(
// '.nut-actionsheet-list .nut-actionsheet-item'
// )
// const disableItem = options[1]
// fireEvent.click(disableItem)
// await waitFor(() => expect(choose).not.toBeCalled())
// })
1 change: 0 additions & 1 deletion cypress/component/Cell.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ it('slot default test', () => {
it('slot extra', () => {
cy.mount(<Cell title="Switch" extra={<Switch defaultChecked />} />)
cy.get('.nut-switch').should('be.visible')
// expect(container.querySelector('.nut-switch')).toBeInTheDocument()
})

0 comments on commit 8b6c3d0

Please sign in to comment.