|
1 | 1 | module.exports = { |
2 | | - '@tags': ['att'], |
3 | | - 'AttributionDetailsStep'(browser) { |
4 | | - const knowLicenseSelector = '.b-radio' |
5 | | - const nextButton = '.next-button' |
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 = '.previous-button' |
19 | | - const paginationFinish = '.pagination-finish' |
20 | | - |
21 | | - browser |
22 | | - .init() |
23 | | - .click(knowLicenseSelector) |
24 | | - .click(nextButton) |
25 | | - .click(select, () => { |
26 | | - browser.click(selectOpt) |
27 | | - }) |
28 | | - .click(nextButton) |
29 | | - .assert.visible(stepTitle, 'Title is visible') |
30 | | - .assert.visible(attributionDetailsInstructions, 'Atrribution Details Instructions block is visible') |
31 | | - .assert.visible(workAuthorLabel, 'Work Author Label is visible') |
32 | | - .assert.visible(workAuthorInput, 'Work Author Input is visible') |
33 | | - .assert.visible(urlCreatorProfileLabel, 'URL of Creator Profile Label is visible') |
34 | | - .assert.visible(urlCreatorProfileInput, 'URL of Creator Profile Input is visible') |
35 | | - .assert.visible(workUrlLabel, 'Work URL Label is visible') |
36 | | - .assert.visible(workUrlInput, 'Work URL Input is visible') |
37 | | - .assert.visible(workTitleLabel, 'Work Title Label is visible') |
38 | | - .assert.visible(workTitleInput, 'Work Title Input is visible') |
39 | | - .assert.visible(backBtn, 'Back button is visible') |
40 | | - .assert.visible(paginationFinish, 'Pagination Finish Block is visible') |
41 | | - } |
| 2 | + // '@tags': ['att'], |
| 3 | + // 'AttributionDetailsStep'(browser) { |
| 4 | + // const knowLicenseSelector = '.b-radio' |
| 5 | + // const nextButton = '.next-button' |
| 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 = '.previous-button' |
| 19 | + // const paginationFinish = '.pagination-finish' |
| 20 | + // |
| 21 | + // browser |
| 22 | + // .init() |
| 23 | + // .click(knowLicenseSelector) |
| 24 | + // .click(nextButton) |
| 25 | + // .click(select, () => { |
| 26 | + // browser.click(selectOpt) |
| 27 | + // }) |
| 28 | + // .click(nextButton) |
| 29 | + // .assert.visible(stepTitle, 'Title is visible') |
| 30 | + // .assert.visible(attributionDetailsInstructions, 'Atrribution Details Instructions block is visible') |
| 31 | + // .assert.visible(workAuthorLabel, 'Work Author Label is visible') |
| 32 | + // .assert.visible(workAuthorInput, 'Work Author Input is visible') |
| 33 | + // .assert.visible(urlCreatorProfileLabel, 'URL of Creator Profile Label is visible') |
| 34 | + // .assert.visible(urlCreatorProfileInput, 'URL of Creator Profile Input is visible') |
| 35 | + // .assert.visible(workUrlLabel, 'Work URL Label is visible') |
| 36 | + // .assert.visible(workUrlInput, 'Work URL Input is visible') |
| 37 | + // .assert.visible(workTitleLabel, 'Work Title Label is visible') |
| 38 | + // .assert.visible(workTitleInput, 'Work Title Input is visible') |
| 39 | + // .assert.visible(backBtn, 'Back button is visible') |
| 40 | + // .assert.visible(paginationFinish, 'Pagination Finish Block is visible') |
| 41 | + // } |
42 | 42 | } |
0 commit comments