element-plus/cypress/integration/components/button.spec.ts
jeremywu 3957ffb324
feat(project): adding cypress into element plus (#5281)
* 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
2022-01-10 19:25:48 +08:00

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)
})
})