1
1
/// <reference types="cypress" />
2
2
3
3
context ( 'Increment steppers' , ( ) => {
4
- beforeEach ( ( ) => {
4
+ beiforeEach ( ( ) => {
5
5
cy . visit ( '/' )
6
6
} ) ;
7
7
8
8
it ( 'Increment regional population' , ( ) => {
9
- cy . contains ( 'Hospitalized Admissions peaks at 300 ' ) ;
9
+ cy . contains ( 'Regional population (3600000) ' ) ;
10
10
11
11
cy . get ( 'input[type=number]' ) . eq ( 0 )
12
12
. should ( 'has.value' , '3600000' ) ;
@@ -16,11 +16,11 @@ context('Increment steppers', () => {
16
16
cy . get ( 'input[type=number]' ) . eq ( 0 )
17
17
. should ( 'has.value' , '3600001' ) ;
18
18
19
- cy . contains ( 'Hospitalized Admissions peaks at 300 ' ) ;
19
+ cy . contains ( 'Regional population (3600001) ' ) ;
20
20
} ) ;
21
21
22
22
it ( 'Increment hospital market share' , ( ) => {
23
- cy . contains ( 'Hospitalized Admissions peaks at 300 ' ) ;
23
+ cy . contains ( 'The estimated number of currently infected individuals is 20128. ' ) ;
24
24
25
25
cy . get ( 'input[type=number]' ) . eq ( 1 )
26
26
. should ( 'has.value' , '15' ) ;
@@ -30,11 +30,11 @@ context('Increment steppers', () => {
30
30
cy . get ( 'input[type=number]' ) . eq ( 1 )
31
31
. should ( 'has.value' , '15.1' ) ;
32
32
33
- cy . contains ( 'Hospitalized Admissions peaks at 302 ' ) ;
33
+ cy . contains ( 'The estimated number of currently infected individuals is 19996. ' ) ;
34
34
} ) ;
35
35
36
36
it ( 'Increment doubling time' , ( ) => {
37
- cy . contains ( 'Hospitalized Admissions peaks at 300 ' ) ;
37
+ cy . contains ( 'An initial doubling time of 4.0 days ' ) ;
38
38
39
39
cy . get ( 'input[type=number]' ) . eq ( 3 )
40
40
. should ( 'has.value' , '4' ) ;
@@ -44,6 +44,6 @@ context('Increment steppers', () => {
44
44
cy . get ( 'input[type=number]' ) . eq ( 3 )
45
45
. should ( 'has.value' , '4.25' ) ;
46
46
47
- cy . contains ( 'Hospitalized Admissions peaks at 272 ' ) ;
47
+ cy . contains ( 'An initial doubling time of 4.25 days ' ) ;
48
48
} ) ;
49
49
} ) ;
0 commit comments