]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: only call browser.end on the last test
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 15 Apr 2020 08:35:32 +0000 (10:35 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 15 Apr 2020 08:35:32 +0000 (10:35 +0200)
e2e/nightwatch.config.js
e2e/specs/hash.js
e2e/specs/modal.js

index 75a974e4fcce5c72cc8728f49a56eee0b5638129..ef6a400fc47baed1c17a56bb060c43b4ff152285 100644 (file)
@@ -54,6 +54,18 @@ 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 bb8c89e9a6fc75654b0b080d40e69022ddbc48c7..6e37b2e39930136798baec714ef0b34620d7039a 100644 (file)
@@ -37,8 +37,6 @@ 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 6b21853b4e092e24676cc94e8738fe8f63a484b9..f17a5f77d444195e6422f4732e997707956f6b74 100644 (file)
@@ -19,8 +19,6 @@ module.exports = {
       .assert.urlEquals(baseURL + '/users/1')
       .assert.visible('dialog')
       .assert.containsText('dialog', 'User #1')
-
-      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -44,8 +42,6 @@ module.exports = {
       .forward()
       .assert.visible('dialog')
       .assert.urlEquals(baseURL + '/users/1')
-
-      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -65,8 +61,6 @@ module.exports = {
       .assert.urlEquals(baseURL + '/')
       .assert.containsText('h1', 'Home')
       .assert.not.visible('dialog')
-
-      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */
@@ -124,8 +118,6 @@ module.exports = {
       .forward()
       .assert.urlEquals(baseURL + '/users/1')
       .assert.visible('dialog')
-
-      .end()
   },
 
   /** @type {import('nightwatch').NightwatchTest} */