File tree Expand file tree Collapse file tree 2 files changed +12
-82
lines changed Expand file tree Collapse file tree 2 files changed +12
-82
lines changed Original file line number Diff line number Diff 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}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments