nicolas restrepo
javascript developer
ย ย ย withย
๐
End-to-End Testing is a type Software Testing that not only validates the software system under test but also checks its integration with external interfaces. Hence, the name "End-to-End". The purpose of End-to-End Testing is to exercise a complete production-like scenario.
Modern software systems are complex and are interconnected with multiple sub-systems.
|
End to End Testing Design framework consists of three parts
|
๐ง
Does not use Selenium. ๐คญ
Focuses on doing end-to-end testing REALLY well.
Works on any front-end framework or website.
ย Tests are only written in JavaScript.
Is all in one. ๐
Is for developers and QA engineers.
Runs much, much faster.
let TODO_ITEM_ONE = 'buy some cheese'
let TODO_ITEM_TWO = 'feed the cat'
let TODO_ITEM_THREE = 'book a doctors appointment'
it('should allow me to add todo items', function () {
// create 1st todo
cy.get('.new-todo').type(TODO_ITEM_ONE).type('{enter}')
// make sure the 1st label contains the 1st todo text
cy.get('.todo-list li').eq(0).find('label').should('contain', TODO_ITEM_ONE)
// create 2nd todo
cy.get('.new-todo').type(TODO_ITEM_TWO).type('{enter}')
// make sure the 2nd label contains the 2nd todo text
cy.get('.todo-list li').eq(1).find('label').should('contain', TODO_ITEM_TWO)
})
By nicolas restrepo