describe('Három területszámító teszt', () => { beforeEach(() => { cy.visit('/') }) it('Alap szerepel az oldalon', () => { cy.contains('Alap') }) it('Magasság szerepel az oldalon', () => { cy.contains('Magasság') }) it('Terület szerepel az oldalon', () => { cy.contains('Terület') }) it('Van button', () => { cy.get('button') }) it('Számít működik 30, 35 inputra', () => { cy.get('#base').type('30') cy.get('#height').type('35') cy.get('#calcButton').click() .then( () => { cy.get('#area').should('have.value', '525'); }) }) })