Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Modifies unit tests and deletes old test file in wrong location
  • Loading branch information
JackieBinya committed Apr 6, 2020
commit 465fab53f2ffebba43e798bee803f14d64cf308a
15 changes: 12 additions & 3 deletions tests/e2e/specs/FirstStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ module.exports = {
'@tags': ['first'],
'FirstStep'(browser) {
const radioSelector = 'div.field.not-selected > label > span.control-label > span'
const radioSelected = 'div.field.selected > label > span.control-label > span'
const nextBtn = '.pagination-next'
const stepTitle = 'div.step-header > h5'
const nextBtn = 'a.pagination-next'
const stepBelowCurrentHeader = 'div:nth-child(2) > div > h5'
const stepDescription = '.step-description'
const backBtn = 'a.pagination-previous'

browser
.init()
.waitForElementVisible('body')
.assert.not.elementPresent(stepDescription)
.click(radioSelector)
.assert.containsText(stepBelowCurrentHeader, 'Creative Commons License')
.click(nextBtn)
.assert.elementPresent(stepDescription)
.assert.visible(stepDescription)
.assert.containsText(stepDescription, 'I know which license I need.')
.click(backBtn)
.click(radioSelector)
.assert.containsText(stepBelowCurrentHeader, 'Attribution')
.click(nextBtn)
.assert.containsText(stepDescription, 'I need help selecting a license.')
.end()
}
}
79 changes: 0 additions & 79 deletions tests/unit/FirstStep1.spec.js

This file was deleted.