File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ '@tags' : [ 'first' ] ,
3
+ 'FirstStep' ( browser ) {
4
+ const yesRadioSelector = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > div.field.not-selected > label > span.check'
5
+ const noRadioSelector = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > div.field.not-selected > label > span.check'
6
+ const attributionHeader = '#site-container > div.columns > div.stepper-container.column > div:nth-child(2) > div > h5'
7
+ const ccLicenseHeader = '#site-container > div.columns > div.stepper-container.column > div:nth-child(2) > div'
8
+ const nextBtn = '.pagination-next'
9
+
10
+ browser
11
+ . init ( )
12
+ . click ( yesRadioSelector )
13
+ . assert . visible ( ccLicenseHeader , 'Click yes:Creative Commons License header is visible in the step below FirstStep' )
14
+ . assert . visible ( nextBtn , 'Next button is visible' )
15
+ . click ( noRadioSelector )
16
+ . assert . visible ( attributionHeader , 'Click no:Attribution header is visible in the step below FirstStep' )
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments