File tree Expand file tree Collapse file tree 2 files changed +35
-17
lines changed
e2e/cypress/integration/tests Expand file tree Collapse file tree 2 files changed +35
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments