@amirrustam
Workshop
@amirrustam
@amirrustam
Our mission is to build a thriving, open source ecosystem that enhances productivity, makes testing an enjoyable experience, and generates developer happiness. We hold ourselves accountable to champion a testing process that actually works.
$ npm install -D cypress
$ npm install -D cypress
$ npx cypress open
cy.<command>
cy.get('button')
cy.get('button')
Β .click()
.should('have.class', 'active')
cy.request('/users/1')
Β .its('body')
.should('deep.eql',{ name:'Amir'})
cy.get('button')
Β .click()
.should('have.class', 'active')
it('send email with contact form', () => {
cy.get('#name-input').type('Amir')
cy.get('#email-input').type('amir@cypress.io')
cy.get('form').submit()
cy.get('#success-message').should('be.visible')
})
β | |
---|---|
β | |
β | |
β |
cy.get('#name-input').type('Amir') cy.get('#email-input').type('amir@cypress.io') cy.get('form').submit() cy.get('#success-message').should('be.visible')
cy.get('button')
Β .click()
.should('have.class', 'active')
$ npx cypress run
$ npx cypress run
$ npx cypress run --record
$ npx cypress run --record --parallel
Reduce pipeline failures and identify true flaky tests.
Β
Β
Β
on.cypress.io/chat
@amirrustam