Skip to content

Radio

js
cy.get('[data-cy=busTask-taskStyle] > .ant-radio-wrapper-checked > .ant-radio > .ant-radio-input').should('have.value', 0)

Checkbox

js
cy.get('[data-cy=busTask-category]').find('input[type=checkbox]').then(list => {
    list.eq(3).click()
    list.eq(4).click()
})

Select

此处需要设置dropdownClassName属性后使用

js
cy.get('[data-cy=busTask-responsibleSecond]').type('LI_QINGMAO')
cy.get('.busTask-responsibleSecond > .ant-select-dropdown-content > ul > li').then(list => {
    list.eq(0).click()
})

DatePicker

js
cy.get('[data-cy=busTask-startTime]').type('2022-05-20{enter}')

Message

js
cy.get('.ant-message-notice').should('be.visible').and('include.text', '操作成功')

To Be Continued!😎