Skip to content

Commit f6ab749

Browse files
authored
Merge pull request #384 from CodeForPhilly/fixes/cypress-determinism
Fixes/cypress determinism
2 parents 63ed99a + 140183c commit f6ab749

File tree

2 files changed

+49
-17
lines changed

2 files changed

+49
-17
lines changed

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

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

Comments
 (0)