]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
Revert "test: only call browser.end on the last test"
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 15 Apr 2020 08:47:07 +0000 (10:47 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 15 Apr 2020 08:47:07 +0000 (10:47 +0200)
This reverts commit 4b3ba8920d40cd4ac94bd8b1deb545b2ff550dcf.

e2e/nightwatch.config.js
e2e/specs/hash.js
e2e/specs/modal.js

index ef6a400fc47baed1c17a56bb060c43b4ff152285..75a974e4fcce5c72cc8728f49a56eee0b5638129 100644 (file)
@@ -54,18 +54,6 @@ module.exports = {
       },
     },
 
-    // TODO: generate these and add skip tags
-    'chrome-headless': {
-      desiredCapabilities: {
-        browserName: 'chrome',
-        acceptSslCerts: true,
-        chromeOptions: {
-          w3c: false,
-          args: ['window-size=1280,800', 'headless'],
-        },
-      },
-    },
-
     safari: {
       desiredCapabilities: {
         browserName: 'safari',
index 6e37b2e39930136798baec714ef0b34620d7039a..bb8c89e9a6fc75654b0b080d40e69022ddbc48c7 100644 (file)
@@ -37,6 +37,8 @@ module.exports = {
       // the unencoded version, no check for the url because changes based on browser
       .click('li:nth-child(5) a')
       .assert.containsText('#param', 'é')
+
+      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
index f17a5f77d444195e6422f4732e997707956f6b74..6b21853b4e092e24676cc94e8738fe8f63a484b9 100644 (file)
@@ -19,6 +19,8 @@ module.exports = {
       .assert.urlEquals(baseURL + '/users/1')
       .assert.visible('dialog')
       .assert.containsText('dialog', 'User #1')
+
+      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -42,6 +44,8 @@ module.exports = {
       .forward()
       .assert.visible('dialog')
       .assert.urlEquals(baseURL + '/users/1')
+
+      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -61,6 +65,8 @@ module.exports = {
       .assert.urlEquals(baseURL + '/')
       .assert.containsText('h1', 'Home')
       .assert.not.visible('dialog')
+
+      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -118,6 +124,8 @@ module.exports = {
       .forward()
       .assert.urlEquals(baseURL + '/users/1')
       .assert.visible('dialog')
+
+      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */