]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(e2e): update for safari
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 5 Dec 2020 16:17:18 +0000 (17:17 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 5 Dec 2020 16:17:18 +0000 (17:17 +0100)
e2e/specs/scroll-behavior.js

index d71682839e1bcaa811f22c7341d486513d3906ec..292d3cb0a77b4efa54532d2b094a8903001e72c9 100644 (file)
@@ -17,10 +17,8 @@ module.exports = {
 
       .execute(function () {
         window.scrollTo(0, 100)
-        // works in Safari
-        document.querySelector('li:nth-child(2) a').click()
       })
-      // .click('li:nth-child(2) a')
+      .click('li:nth-child(2) a')
       .waitForElementPresent('.view.foo', TIMEOUT)
       .assert.containsText('.view', 'foo')
       .execute(function () {