|
| 1 | +/// <reference types="cypress" /> |
| 2 | + |
| 3 | +context('Increment steppers', () => { |
| 4 | + beforeEach(() => { |
| 5 | + cy.visit('/') |
| 6 | + }); |
| 7 | + |
| 8 | + it('Increment regional population', () => { |
| 9 | + cy.contains('Hospitalized Admissions peaks at 301'); |
| 10 | + |
| 11 | + cy.get('input.st-al').eq(0) |
| 12 | + .should('has.value', '3600000'); |
| 13 | + |
| 14 | + cy.get('.step-up').eq(0).click(); |
| 15 | + |
| 16 | + cy.get('input.st-al').eq(0) |
| 17 | + .should('has.value', '3600001'); |
| 18 | + |
| 19 | + cy.contains('Hospitalized Admissions peaks at 301'); |
| 20 | + }); |
| 21 | + |
| 22 | + it('Increment hospital market share', () => { |
| 23 | + cy.contains('Hospitalized Admissions peaks at 301'); |
| 24 | + |
| 25 | + cy.get('input.st-al').eq(1) |
| 26 | + .should('has.value', '15'); |
| 27 | + |
| 28 | + cy.get('.step-up').eq(1).click(); |
| 29 | + |
| 30 | + cy.get('input.st-al').eq(1) |
| 31 | + .should('has.value', '15.1'); |
| 32 | + |
| 33 | + cy.contains('Hospitalized Admissions peaks at 303'); |
| 34 | + }); |
| 35 | + |
| 36 | + it('Increment doubling time', () => { |
| 37 | + cy.contains('Hospitalized Admissions peaks at 301'); |
| 38 | + |
| 39 | + cy.get('input.st-al').eq(3) |
| 40 | + .should('has.value', '4'); |
| 41 | + |
| 42 | + cy.get('.step-up').eq(3).click(); |
| 43 | + |
| 44 | + cy.get('input.st-al').eq(3) |
| 45 | + .should('has.value', '4.25'); |
| 46 | + |
| 47 | + cy.contains('Hospitalized Admissions peaks at 273'); |
| 48 | + }); |
| 49 | +}); |
0 commit comments