Division context
In this section, we’ll look at the various E2E test cases related to division.
Divides a positive non-zero number by another positive non-zero number
In this test case, we will see how to write the E2E test to divide a positive non-zero number by another positive non-zero number:
it('divides a positive non-zero number by another positive non-zero number', () => { cy.visit('http: //localhost:4200/'); cy.get('input').first().type('5'); cy.get('select').select('/').should('have.value', '/'); cy.get('input').last().type('2'); cy.get('button').click(); cy.get('p').should('have.text', '2.5'); ...