Cypress
yarn add -D cypressUsage
// Each method is equivalent to its jQuery counterpart. Use what you know!
cy.get('#main-content')
.find('.article')
.children('img[src^="/static"]')
.first()./node_modules/.bin/cypress open/* global describe it cy */
describe('My First Test', () => {
it('finds the content "type"', () => {
cy.visit('https://example.cypress.io')
cy.get('.main').contains('New Post')
cy.contains('Like article')
cy.url().should('include', '/commands/actions')
cy.get('.action-email')
.type('fake@email.com')
.should('have.value', 'fake@email.com')
})
})Commands
Should
Advanced
Hooks(Lifecycle?)
Act on A Subject Sync with .then()
Assertions
Other
Last updated