From 8789eb46b31c77600e5665f92dad4f6da91b775b Mon Sep 17 00:00:00 2001 From: vodorok Date: Wed, 10 May 2023 17:50:56 +0200 Subject: [PATCH] Upgrade nightwatch --- web/server/vue-cli/e2e/specs/runs.js | 6 +++--- web/server/vue-cli/nightwatch.conf.js | 1 + web/server/vue-cli/package-lock.json | 2 +- web/server/vue-cli/package.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/server/vue-cli/e2e/specs/runs.js b/web/server/vue-cli/e2e/specs/runs.js index d3509e6384..551f9fdfe8 100644 --- a/web/server/vue-cli/e2e/specs/runs.js +++ b/web/server/vue-cli/e2e/specs/runs.js @@ -195,7 +195,7 @@ module.exports = { expandedSection.waitForElementVisible("@loadMoreBtn"); timelineSection.api.elements("@historyEvent", ({result}) => { - browser.assert.ok(result.value.length === 10); + browser.assert.ok(result.length === 10); }); expandedSection.click("@loadMoreBtn"); @@ -204,7 +204,7 @@ module.exports = { .waitForElementNotPresent("@loadMoreBtn"); timelineSection.api.elements("@historyEvent", ({result}) => { - browser.assert.ok(result.value.length > 10); + browser.assert.ok(result.length > 10); }); }, @@ -227,7 +227,7 @@ module.exports = { runsPage.perform(() => { timelineSection.api.elements("@historyEvent", ({result}) => { - browser.assert.ok(result.value.length === 1); + browser.assert.ok(result.length === 1); }); }); diff --git a/web/server/vue-cli/nightwatch.conf.js b/web/server/vue-cli/nightwatch.conf.js index dd810cabd4..3f342a9c5c 100644 --- a/web/server/vue-cli/nightwatch.conf.js +++ b/web/server/vue-cli/nightwatch.conf.js @@ -7,6 +7,7 @@ module.exports = { page_objects_path: [ "e2e/pages" ], custom_commands_path: [ "e2e/commands" ], output_folder: "e2e/output", + backwards_compatibility_mode: true, test_settings: { default: { diff --git a/web/server/vue-cli/package-lock.json b/web/server/vue-cli/package-lock.json index 3d1ea7fd8d..23cc721a09 100644 --- a/web/server/vue-cli/package-lock.json +++ b/web/server/vue-cli/package-lock.json @@ -50,7 +50,7 @@ "html-webpack-plugin": "^5.5.0", "http-server": "^14.1.0", "jest": "^28.1.1", - "nightwatch": "^1.7.13", + "nightwatch": "^2.6.20", "raw-loader": "^4.0.2", "regenerator-runtime": "^0.13.9", "rimraf": "^3.0.2", diff --git a/web/server/vue-cli/package.json b/web/server/vue-cli/package.json index 85f33eacb9..19c3d22214 100644 --- a/web/server/vue-cli/package.json +++ b/web/server/vue-cli/package.json @@ -68,7 +68,7 @@ "html-webpack-plugin": "^5.5.0", "http-server": "^14.1.0", "jest": "^28.1.1", - "nightwatch": "^1.7.13", + "nightwatch": "^2.6.20", "raw-loader": "^4.0.2", "regenerator-runtime": "^0.13.9", "rimraf": "^3.0.2",