Skip to content

Commit 465fab5

Browse files
committed
Modifies unit tests and deletes old test file in wrong location
1 parent 996b8a3 commit 465fab5

File tree

2 files changed

+12
-82
lines changed

2 files changed

+12
-82
lines changed

tests/e2e/specs/FirstStep.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@ module.exports = {
22
'@tags': ['first'],
33
'FirstStep'(browser) {
44
const radioSelector = 'div.field.not-selected > label > span.control-label > span'
5-
const radioSelected = 'div.field.selected > label > span.control-label > span'
6-
const nextBtn = '.pagination-next'
7-
const stepTitle = 'div.step-header > h5'
5+
const nextBtn = 'a.pagination-next'
86
const stepBelowCurrentHeader = 'div:nth-child(2) > div > h5'
7+
const stepDescription = '.step-description'
8+
const backBtn = 'a.pagination-previous'
99

1010
browser
1111
.init()
12+
.waitForElementVisible('body')
13+
.assert.not.elementPresent(stepDescription)
1214
.click(radioSelector)
1315
.assert.containsText(stepBelowCurrentHeader, 'Creative Commons License')
16+
.click(nextBtn)
17+
.assert.elementPresent(stepDescription)
18+
.assert.visible(stepDescription)
19+
.assert.containsText(stepDescription, 'I know which license I need.')
20+
.click(backBtn)
1421
.click(radioSelector)
1522
.assert.containsText(stepBelowCurrentHeader, 'Attribution')
23+
.click(nextBtn)
24+
.assert.containsText(stepDescription, 'I need help selecting a license.')
1625
.end()
1726
}
1827
}

tests/unit/FirstStep1.spec.js

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)