1+ module . exports = {
2+ '@tags' : [ 'att' ] ,
3+ 'AttributionDetailsStep' ( browser ) {
4+ const knowLicenseSelector = '.b-radio'
5+ const nextButton = '.pagination-next'
6+ const select = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > div > div > span > select'
7+ const selectOpt = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > div > div > span > select > option:nth-child(4)'
8+ const stepTitle = '.step-title'
9+ const attributionDetailsInstructions = '.attribution-details-instructions'
10+ const workAuthorLabel = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(1) > label'
11+ const workAuthorInput = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(1) > div > input'
12+ const urlCreatorProfileLabel = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(2) > label'
13+ const urlCreatorProfileInput = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(2) > div > input'
14+ const workUrlLabel = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(3) > label'
15+ const workUrlInput = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(4) > div > input'
16+ const workTitleLabel = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(3) > label'
17+ const workTitleInput = '#site-container > div.columns > div.stepper-container.column > div.step-container.current.enabled > div.step-content > div > form > div:nth-child(3) > div > input'
18+ const backBtn = '.pagination-previous'
19+ const paginationFinish = '.pagination-finish'
20+
21+
22+ browser
23+ . init ( )
24+ . click ( knowLicenseSelector )
25+ . click ( nextButton )
26+ . click ( select , ( ) => {
27+ browser . click ( selectOpt )
28+ } )
29+ . click ( nextButton )
30+ . assert . visible ( stepTitle , 'Title is visible' )
31+ . assert . visible ( attributionDetailsInstructions , 'Atrribution Details Instructions block is visible' )
32+ . assert . visible ( workAuthorLabel , 'Work Author Label is visible' )
33+ . assert . visible ( workAuthorInput , 'Work Author Input is visible' )
34+ . assert . visible ( urlCreatorProfileLabel , 'URL of Creator Profile Label is visible' )
35+ . assert . visible ( urlCreatorProfileInput , 'URL of Creator Profile Input is visible' )
36+ . assert . visible ( workUrlLabel , 'Work URL Label is visible' )
37+ . assert . visible ( workUrlInput , 'Work URL Input is visible' )
38+ . assert . visible ( workTitleLabel , 'Work Title Label is visible' )
39+ . assert . visible ( workTitleInput , 'Work Title Input is visible' )
40+ . assert . visible ( backBtn , 'Back button is visible' )
41+ . assert . visible ( paginationFinish , 'Pagination Finish Block is visible' )
42+ }
43+ }
0 commit comments