From 0c4ef6cd503233ac173ebbaf0d33c8b204ea1712 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Fri, 21 Jun 2024 18:03:31 +0000 Subject: [PATCH] ci: bump Datashare to 17.0.4 --- package.json | 1 + tests/e2e/default.js | 6 +++--- yarn.lock | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a5c0dee..c3d52c8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.5", + "axios": "^1.7.2", "geckodriver": "^4.4.1", "nightwatch": "^3.6.3", "vite": "^5.3.1", diff --git a/tests/e2e/default.js b/tests/e2e/default.js index e5e6f76..22e70c1 100644 --- a/tests/e2e/default.js +++ b/tests/e2e/default.js @@ -5,11 +5,11 @@ const { main } = require('../../package.json') module.exports = { before: function () { // Add a document in CAPSLOCK in Datashare using ElasticSearch API - return axios.post('http://localhost:9200/local-datashare/doc/b53063', document) + return axios.post('http://localhost:9200/local-datashare/_doc/b53063', document) }, after: function () { // Delete the document - return axios.delete('http://localhost:9200/local-datashare/doc/b53063') + return axios.delete('http://localhost:9200/local-datashare/_doc/b53063') }, 'default configuration test': function (browser) { browser.url('http://localhost:8008') @@ -18,7 +18,7 @@ module.exports = { // Is the script injected correctly? browser.expect.element(`script[src="/plugins/package/${main}"]`).to.be.present }, - 'it convert text to sentence case': !function() { + 'it convert text to sentence case': function() { // Move to a document browser.url('http://localhost:8008/#/d/local-datashare/b53063') // Wait for the document to be loaded diff --git a/yarn.lock b/yarn.lock index 5bcfdc4..b12404e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -540,6 +540,15 @@ axe-core@^4.9.1: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.9.1.tgz#fcd0f4496dad09e0c899b44f6c4bb7848da912ae" integrity sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw== +axios@^1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" + integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + b4a@^1.6.4: version "1.6.6" resolved "https://registry.yarnpkg.com/b4a/-/b4a-1.6.6.tgz#a4cc349a3851987c3c4ac2d7785c18744f6da9ba" @@ -1207,6 +1216,11 @@ flat@^5.0.2: resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== +follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== + for-each@^0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" @@ -2166,6 +2180,11 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + psl@^1.1.33: version "1.9.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7"