From 17b2e3f388e3b211288e117113808a059027a1f1 Mon Sep 17 00:00:00 2001 From: Nicolas Thouvenin Date: Tue, 17 Oct 2023 15:45:13 +0200 Subject: [PATCH 1/2] ensure uri is clean --- workers/loaders/atom.ini | 2 ++ workers/loaders/corpus.ini | 3 ++- workers/loaders/csv-comma.ini | 2 ++ workers/loaders/csv-semicolon.ini | 2 ++ workers/loaders/csv.ini | 2 ++ workers/loaders/doi-list.ini | 2 ++ workers/loaders/json-conditor.ini | 2 ++ workers/loaders/json-datacite.ini | 2 ++ workers/loaders/json-import.ini | 2 ++ workers/loaders/json-inspirehep.ini | 2 ++ workers/loaders/json-istex.ini | 2 ++ workers/loaders/json-lines.ini | 2 ++ workers/loaders/json-lodex.ini | 2 ++ workers/loaders/json-optimized.ini | 2 ++ workers/loaders/json-protege-resolver.ini | 2 ++ workers/loaders/json-protege.ini | 2 ++ workers/loaders/json-report.ini | 2 ++ workers/loaders/json-wordpress.ini | 2 ++ workers/loaders/json.ini | 2 ++ workers/loaders/mods.ini | 2 ++ workers/loaders/rdf.ini | 2 ++ workers/loaders/rss.ini | 2 ++ workers/loaders/skos.ini | 2 ++ workers/loaders/tar-gz.ini | 4 ++++ workers/loaders/tei-persee.ini | 2 ++ workers/loaders/tei.ini | 2 ++ workers/loaders/tsv-double-quotes.ini | 2 ++ workers/loaders/tsv-wos.ini | 2 ++ workers/loaders/tsv.ini | 2 ++ workers/loaders/xml.ini | 2 ++ workers/loaders/zip-raw.ini | 2 ++ workers/loaders/zip.ini | 2 ++ 32 files changed, 66 insertions(+), 1 deletion(-) diff --git a/workers/loaders/atom.ini b/workers/loaders/atom.ini index f43fdf4c3..a049e1ed4 100644 --- a/workers/loaders/atom.ini +++ b/workers/loaders/atom.ini @@ -50,4 +50,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/corpus.ini b/workers/loaders/corpus.ini index 277b07f50..e8dd60441 100644 --- a/workers/loaders/corpus.ini +++ b/workers/loaders/corpus.ini @@ -41,4 +41,5 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') - +path = uri +value = get('uri').trim() diff --git a/workers/loaders/csv-comma.ini b/workers/loaders/csv-comma.ini index f81980c1b..9b7ccda14 100644 --- a/workers/loaders/csv-comma.ini +++ b/workers/loaders/csv-comma.ini @@ -37,4 +37,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/csv-semicolon.ini b/workers/loaders/csv-semicolon.ini index c53d3257e..f9f99704c 100644 --- a/workers/loaders/csv-semicolon.ini +++ b/workers/loaders/csv-semicolon.ini @@ -38,4 +38,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/csv.ini b/workers/loaders/csv.ini index 06924d0fb..3f2023bee 100644 --- a/workers/loaders/csv.ini +++ b/workers/loaders/csv.ini @@ -35,4 +35,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/doi-list.ini b/workers/loaders/doi-list.ini index 6d57f1d0f..20129fd2f 100644 --- a/workers/loaders/doi-list.ini +++ b/workers/loaders/doi-list.ini @@ -72,4 +72,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-conditor.ini b/workers/loaders/json-conditor.ini index 228c22549..732fb41e7 100644 --- a/workers/loaders/json-conditor.ini +++ b/workers/loaders/json-conditor.ini @@ -164,3 +164,5 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-datacite.ini b/workers/loaders/json-datacite.ini index 30279b675..f79175703 100644 --- a/workers/loaders/json-datacite.ini +++ b/workers/loaders/json-datacite.ini @@ -39,4 +39,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-import.ini b/workers/loaders/json-import.ini index b4cad2bf3..0466e318f 100644 --- a/workers/loaders/json-import.ini +++ b/workers/loaders/json-import.ini @@ -34,4 +34,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-inspirehep.ini b/workers/loaders/json-inspirehep.ini index 27fa95d59..4434d32c1 100644 --- a/workers/loaders/json-inspirehep.ini +++ b/workers/loaders/json-inspirehep.ini @@ -97,3 +97,5 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-istex.ini b/workers/loaders/json-istex.ini index 5018e6c2e..24c62a4b9 100644 --- a/workers/loaders/json-istex.ini +++ b/workers/loaders/json-istex.ini @@ -43,4 +43,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-lines.ini b/workers/loaders/json-lines.ini index 641a088df..6cfd23727 100644 --- a/workers/loaders/json-lines.ini +++ b/workers/loaders/json-lines.ini @@ -32,4 +32,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-lodex.ini b/workers/loaders/json-lodex.ini index a462c220e..7b7df58c3 100644 --- a/workers/loaders/json-lodex.ini +++ b/workers/loaders/json-lodex.ini @@ -34,4 +34,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-optimized.ini b/workers/loaders/json-optimized.ini index 968918cbe..bbc4f1669 100644 --- a/workers/loaders/json-optimized.ini +++ b/workers/loaders/json-optimized.ini @@ -42,4 +42,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-protege-resolver.ini b/workers/loaders/json-protege-resolver.ini index 6a7619978..492d69c1f 100644 --- a/workers/loaders/json-protege-resolver.ini +++ b/workers/loaders/json-protege-resolver.ini @@ -51,4 +51,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-protege.ini b/workers/loaders/json-protege.ini index 7841faa62..7ffea4377 100644 --- a/workers/loaders/json-protege.ini +++ b/workers/loaders/json-protege.ini @@ -202,4 +202,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-report.ini b/workers/loaders/json-report.ini index f761a02cc..5f60bb5ab 100644 --- a/workers/loaders/json-report.ini +++ b/workers/loaders/json-report.ini @@ -47,4 +47,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json-wordpress.ini b/workers/loaders/json-wordpress.ini index 9f8948e65..c7eafb6e9 100644 --- a/workers/loaders/json-wordpress.ini +++ b/workers/loaders/json-wordpress.ini @@ -46,4 +46,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/json.ini b/workers/loaders/json.ini index e922039de..c48cabb2b 100644 --- a/workers/loaders/json.ini +++ b/workers/loaders/json.ini @@ -34,4 +34,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/mods.ini b/workers/loaders/mods.ini index 3ae14515f..5fe31df5c 100644 --- a/workers/loaders/mods.ini +++ b/workers/loaders/mods.ini @@ -46,4 +46,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/rdf.ini b/workers/loaders/rdf.ini index 7f52be465..d1aa788eb 100644 --- a/workers/loaders/rdf.ini +++ b/workers/loaders/rdf.ini @@ -47,4 +47,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/rss.ini b/workers/loaders/rss.ini index 0cff1886a..82f841252 100644 --- a/workers/loaders/rss.ini +++ b/workers/loaders/rss.ini @@ -50,4 +50,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/skos.ini b/workers/loaders/skos.ini index 53c3dedc9..eb6e925e4 100644 --- a/workers/loaders/skos.ini +++ b/workers/loaders/skos.ini @@ -57,4 +57,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/tar-gz.ini b/workers/loaders/tar-gz.ini index a4ffbfbdf..b2dacf2cf 100644 --- a/workers/loaders/tar-gz.ini +++ b/workers/loaders/tar-gz.ini @@ -257,3 +257,7 @@ value = env('parser') path = lodexStamp.uploadedFilename value = env('source') + +path = uri +value = get('uri').trim() + diff --git a/workers/loaders/tei-persee.ini b/workers/loaders/tei-persee.ini index 29f7b5e6a..5f9606033 100644 --- a/workers/loaders/tei-persee.ini +++ b/workers/loaders/tei-persee.ini @@ -84,4 +84,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/tei.ini b/workers/loaders/tei.ini index 40bab1fea..9e88aa996 100644 --- a/workers/loaders/tei.ini +++ b/workers/loaders/tei.ini @@ -47,4 +47,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/tsv-double-quotes.ini b/workers/loaders/tsv-double-quotes.ini index 68b36aeab..3c9409616 100644 --- a/workers/loaders/tsv-double-quotes.ini +++ b/workers/loaders/tsv-double-quotes.ini @@ -37,4 +37,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/tsv-wos.ini b/workers/loaders/tsv-wos.ini index 6a5e2249e..b3e7e7047 100644 --- a/workers/loaders/tsv-wos.ini +++ b/workers/loaders/tsv-wos.ini @@ -37,4 +37,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/tsv.ini b/workers/loaders/tsv.ini index 554fb594b..273ec30b0 100644 --- a/workers/loaders/tsv.ini +++ b/workers/loaders/tsv.ini @@ -37,4 +37,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/xml.ini b/workers/loaders/xml.ini index 3f0c76a8f..d0ce062a7 100644 --- a/workers/loaders/xml.ini +++ b/workers/loaders/xml.ini @@ -55,4 +55,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/zip-raw.ini b/workers/loaders/zip-raw.ini index 5c2982528..41d0f9718 100644 --- a/workers/loaders/zip-raw.ini +++ b/workers/loaders/zip-raw.ini @@ -37,4 +37,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() diff --git a/workers/loaders/zip.ini b/workers/loaders/zip.ini index 2411096f0..42e165302 100644 --- a/workers/loaders/zip.ini +++ b/workers/loaders/zip.ini @@ -248,4 +248,6 @@ path = lodexStamp.usedParser value = env('parser') path = lodexStamp.uploadedFilename value = env('source') +path = uri +value = get('uri').trim() From 5e8ba8f1861e997f48dcf7967542bf9ce95b2d31 Mon Sep 17 00:00:00 2001 From: AlasDiablo <25723276+AlasDiablo@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:01:39 +0200 Subject: [PATCH 2/2] fix: try to fix issues with never found element --- cypress/e2e/phase_1/subresource.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/phase_1/subresource.cy.js b/cypress/e2e/phase_1/subresource.cy.js index e6a5c50bf..7fa765ef1 100644 --- a/cypress/e2e/phase_1/subresource.cy.js +++ b/cypress/e2e/phase_1/subresource.cy.js @@ -167,7 +167,7 @@ describe('Subresource Page', () => { datasetImportPage.fillTabDisplayFormat('link', false); cy.contains('The column content').click(); cy.get(`[role="listbox"] li[data-value="column"]`).click(); - cy.get(`[role="listbox"]`).should('not.be.visible'); + cy.get(`[role="listbox"]`).should('not.exist'); cy.contains('label', 'Custom text') .parent('div') .within(() => {