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

index 292d3cb0a77b4efa54532d2b094a8903001e72c9..5d365696641f1762487e3a868dd1ebf6b8f9e458 100644 (file)
@@ -62,11 +62,7 @@ module.exports = {
         null,
         'restore scroll position on back again'
       )
-
-      .execute(function () {
-        // for Safari...
-        document.querySelector('li:nth-child(3) a').click()
-      })
+      .click('li:nth-child(3) a')
       .waitForElementPresent('.view.bar', TIMEOUT)
       .assert.evaluate(
         function () {