File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const BUTTON_SELECTOR = '.primary.button'
3
3
const RESET_SELECTOR = '.negative.button'
4
4
const PROGRESS_SELECTOR = '#progress'
5
5
const RESPONSE_MSG = 'You must give a response'
6
- const questionSelector = num => `.card:nth-child( ${ num } ) `
6
+ const questionSelector = num => `#question_ ${ num - 1 } `
7
7
8
8
module . exports = {
9
9
data,
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ describe('Quiz', () => {
40
40
client . expect . element ( questionSelector ( 1 ) )
41
41
. to . be . visible
42
42
client . expect . element ( questionSelector ( 2 ) )
43
- . to . not . be . visible
43
+ . to . not . be . present
44
44
client . expect . element ( questionSelector ( 3 ) )
45
- . to . not . be . visible
45
+ . to . not . be . present
46
46
} )
47
47
48
48
it ( 'should display description of the question' , ( client ) => {
@@ -81,7 +81,7 @@ describe('Quiz', () => {
81
81
82
82
it ( 'should display the next question' , ( client ) => {
83
83
client . expect . element ( questionSelector ( 1 ) )
84
- . to . not . be . visible
84
+ . to . not . be . present
85
85
client . expect . element ( questionSelector ( 2 ) )
86
86
. to . be . visible
87
87
} )
@@ -102,7 +102,7 @@ describe('Quiz', () => {
102
102
103
103
it ( 'should display the last non answered question' , ( client ) => {
104
104
client . expect . element ( questionSelector ( 1 ) )
105
- . to . not . be . visible
105
+ . to . not . be . present
106
106
client . expect . element ( questionSelector ( 2 ) )
107
107
. to . be . visible
108
108
} )
@@ -120,7 +120,7 @@ describe('Quiz', () => {
120
120
client . expect . element ( questionSelector ( 1 ) )
121
121
. to . be . visible
122
122
client . expect . element ( questionSelector ( 2 ) )
123
- . to . not . be . visible
123
+ . to . not . be . present
124
124
} )
125
125
} )
126
126
} )
You can’t perform that action at this time.
0 commit comments