Finally a real stable front-end testing framework
Lee Blazek
React, Angular, JS, Mean Stack, Front-end, Node api's, with a side of iOS
- Jeeze... This guy is the Happy Gilmore of javascript + Web Development
Automated testing a users actions in the browser. Usually connected to database, or mock DB. Some times stubbed api calls
- ME
Most all testing frameworks
are selenium based:
In one way or another you can test
describe('My First Test', function() {
it('finds the content "type"', function() {
// Navigate browser to page
cy.visit('https://example.cypress.io')
cy.contains('about').click()
// NOTE: contains is for getting HTML element
// by the text inside it(all text!)
cy.contains('type').should('exist')
cy.contains('about').click()
// NOTE: get is to get elements by css
cy.get('h1').should('not.exist')
})
})
When Running any E2E test suite don't reload the site in between in each unless you need too. I can double to quadruple your run times