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
SME Javascript
Started development in 2003 ~ 17 years
Full-stack JS since 2013 ~ 7 years
Since Angular v 0.8
node 0.x
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
context('My First Test', function() {
it('should test stuff', function() {
// Navigate browser to page
cy.visit('https://example.cypress.io')
// by the text inside it(all text!)
cy.contains('about').click()
cy.contains('type').should('exist')
cy.contains('about').should('exist').click()
// get is to get elements by css selector
cy.get('h1').should('not.exist')
// get/contains will intelligently return single object or array when needed
cy.get('a').should('contain', 'about')
.and('contain', 'help')
.and('have.length', 2)
})
})/// <reference types="Cypress" />
import data from '../fixtures/data.json'
context('Assigned Rights', () => {
before(() => {
cy.server()
cy.route("GET", '/api/users/data', data)
cy.visit('/')
})
it('should open site', () => {
cy.location('href').should('contain', '#/profile')
})
it('should have Covering Rights section', ()=>{
cy.contains('name').should('exist')
cy.get('.row').should('have.length.greaterThan', 10)
})Stubbing with cy.route()
seminars
conferences
training
consulting
projects
https://www.linkedin.com/company/berzerk-io/
https://www.facebook.com/berzerk.interactive/
SME Javascript, Angular, React, Vue, NodeJS, all things in the browser