mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
3957ffb324
* feat(project): adding cypress into element plus - Introduce Cypress to Element Plus - Add Action config for running Cypress automatically after workflow for build website done - Add a base case for button.spec.ts - Add cypress recordings and screenshots to gitignore - Add Cypress into tsconfig.json for global typing intelligence - Add scripts for running cypress * - Update cpress.yml syntax error * - Remove cypress from jest running collector
11 lines
236 B
TypeScript
11 lines
236 B
TypeScript
context('ElButton', () => {
|
|
beforeEach(() => {
|
|
cy.visit('component/button.html')
|
|
})
|
|
|
|
it('should be able to render button on the screen', () => {
|
|
cy.screenshot()
|
|
cy.get('.el-button').should('have.lengthOf', 68)
|
|
})
|
|
})
|