Skip to content

Commit a2ad6f1

Browse files
committed
Adds e2e tests
1 parent 67d0ce8 commit a2ad6f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/e2e/specs/DropdownStep.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
'@tags': ['ds'],
3+
'DropdownStep'(browser) {
4+
browser
5+
.init()
6+
.assert.elementPresent('.control-label > span')
7+
.click('.control-label > span')
8+
.assert.not.cssClassPresent('.pagination-next', 'disabled')
9+
.click('.pagination-next')
10+
.assert.elementPresent('.select > select')
11+
.click('.select > select')
12+
.click('option[value="CC0 1.0"]')
13+
.assert.not.cssClassPresent('.pagination-next', 'disabled')
14+
.click('.pagination-next')
15+
.assert.visible('.step-description')
16+
.assert.containsText('div.step-description', 'CC0 1.0 Universal')
17+
.end()
18+
}
19+
}

0 commit comments

Comments
 (0)