Skip to content

Commit 70bb2a4

Browse files
committed
Test the default content of the homepage
1 parent 7ce7808 commit 70bb2a4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/e2e/specs/LicenseDescription.js

+15
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,20 @@ module.exports = {
77
.assert.containsText('h2', 'Selected License')
88
.assert.elementPresent('.help')
99
.end()
10+
},
11+
12+
'The license information about the CC BY 4.0 is shown by default when a user goes to the home page': function (browser) {
13+
browser
14+
.url(browser.globals.devServerURL)
15+
.waitForElementVisible('#app', 5000)
16+
.assert.elementPresent('.selected-license-name')
17+
.assert.containsText('.help', 'Atribution 4.0 International')
18+
.assert.containsText('#chooser-selected-share_adapt', 'CC BY attribution means you allow people to')
19+
.assert.elementPresent('#chooser-selected-description')
20+
.assert.containsText('#chooser-selected-description', 'As the most accommodating of licenses offered, the CC BY license allows others to distribute, remix, tweak, and build upon your work, even commercially, as long as they credit you for the original creation.')
21+
.end()
1022
}
23+
24+
25+
1126
}

0 commit comments

Comments
 (0)