Skip to content

Commit 69236ab

Browse files
test: redo basic tests to be more explicit
1 parent b0fa0e6 commit 69236ab

File tree

2 files changed

+35
-17
lines changed

2 files changed

+35
-17
lines changed

e2e/cypress/integration/tests/actions.spec.js

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
});

0 commit comments

Comments
 (0)