Skip to content

Commit 996b8a3

Browse files
committed
e2e tests
1 parent 747047b commit 996b8a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/e2e/specs/FirstStep.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ module.exports = {
55
const radioSelected = 'div.field.selected > label > span.control-label > span'
66
const nextBtn = '.pagination-next'
77
const stepTitle = 'div.step-header > h5'
8+
const stepBelowCurrentHeader = 'div:nth-child(2) > div > h5'
89

910
browser
1011
.init()
11-
.assert.containsText(stepTitle, 'Do you know which license you need?')
12-
.assert.containsText(radioSelector, 'Yes. I know which license I need')
13-
.assert.containsText(radioSelected, 'No. I need help selecting a license')
1412
.click(radioSelector)
15-
.assert.not.cssClassPresent(nextBtn, 'disabled')
16-
.assert.containsText(radioSelector, 'No. I need help selecting a license')
13+
.assert.containsText(stepBelowCurrentHeader, 'Creative Commons License')
14+
.click(radioSelector)
15+
.assert.containsText(stepBelowCurrentHeader, 'Attribution')
1716
.end()
1817
}
1918
}

0 commit comments

Comments
 (0)