Skip to content

Commit 9248538

Browse files
committed
Add waits for scrolling to fix testing
1 parent 824b831 commit 9248538

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/e2e/page-objects/chooser.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,23 @@
44

55
const stepperCommands = {
66
clickYes: function() {
7-
this.pause(500)
87
this.click('.radio-input[value="yes"]')
8+
this.pause(500)
99
return this
1010
},
1111
clickNo: function() {
12-
this.pause(500)
1312
this.click('.radio-input[value="no"]')
13+
this.pause(500)
1414
return this
1515
},
1616
clickNext: function() {
1717
this.click('.next-button')
18+
this.pause(500)
1819
return this
1920
},
2021
clickPrevious: function() {
2122
this.click('.previous-button')
23+
this.pause(500)
2224
return this
2325
},
2426
chooseNo: function() {
@@ -34,7 +36,7 @@ const stepperCommands = {
3436
clickWaiver: function() {
3537
this.click('.v-checkbox:first-child')
3638
.click('.v-checkbox:last-child')
37-
.click('.next-button')
39+
this.clickNext()
3840
return this
3941
},
4042
selectFromDropdown: function(licenseName) {
@@ -43,6 +45,7 @@ const stepperCommands = {
4345
.click('.license-dropdown')
4446
.click(`.license-dropdown option[value="${licenseName}"]`)
4547
.click('.next-button')
48+
this.pause(500)
4649
return this
4750
},
4851
assertStepName: function(stepName) {

0 commit comments

Comments
 (0)