Skip to content
Prev Previous commit
Next Next commit
Add waits for scrolling to fix testing
  • Loading branch information
obulat committed Dec 17, 2020
commit 924853878c262d5ab40e727e3d9dbbe98ec8620a
9 changes: 6 additions & 3 deletions tests/e2e/page-objects/chooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@

const stepperCommands = {
clickYes: function() {
this.pause(500)
this.click('.radio-input[value="yes"]')
this.pause(500)
return this
},
clickNo: function() {
this.pause(500)
this.click('.radio-input[value="no"]')
this.pause(500)
return this
},
clickNext: function() {
this.click('.next-button')
this.pause(500)
return this
},
clickPrevious: function() {
this.click('.previous-button')
this.pause(500)
return this
},
chooseNo: function() {
Expand All @@ -34,7 +36,7 @@ const stepperCommands = {
clickWaiver: function() {
this.click('.v-checkbox:first-child')
.click('.v-checkbox:last-child')
.click('.next-button')
this.clickNext()
return this
},
selectFromDropdown: function(licenseName) {
Expand All @@ -43,6 +45,7 @@ const stepperCommands = {
.click('.license-dropdown')
.click(`.license-dropdown option[value="${licenseName}"]`)
.click('.next-button')
this.pause(500)
return this
},
assertStepName: function(stepName) {
Expand Down