Skip to content

Commit

Permalink
Add e2e delay (#294)
Browse files Browse the repository at this point in the history
* Add pause to Lookup tests
* Add pause to button tests
* Fix pause order
  • Loading branch information
itamargiv authored Nov 23, 2020
1 parent 17dabc8 commit f931fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions vue-components/tests/e2e/specs/Button.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
'Button is visible': ( client ) => {
client
.pause( 500 )
.init()
.openComponentStory( 'button' )
.waitForElementPresent( '.wikit-Button' )
Expand Down
3 changes: 3 additions & 0 deletions vue-components/tests/e2e/specs/Lookup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
},
'Lookup Menu displays no-results text on no matches found': ( client ) => {
client
.pause( 500 )
.init()
.openComponentStoryDirectory( 'lookup' )
.openComponentStory( 'lookup-lookup' )
Expand All @@ -21,6 +22,7 @@ module.exports = {
},
'Lookup Menu selects menu item when LookupMenu-Item clicked': ( client ) => {
client
.pause( 500 )
.init()
.openComponentStoryDirectory( 'lookup' )
.openComponentStory( 'lookup-lookup' )
Expand All @@ -34,6 +36,7 @@ module.exports = {
},
'Lookup emits first and last index on scroll change': ( client ) => {
client
.pause( 500 )
.init()
.openComponentStoryDirectory( 'lookup' )
.openComponentStory( 'lookup-lookup' )
Expand Down

0 comments on commit f931fc0

Please sign in to comment.