{children.map((chunk, index) =>
+ {(rubric === '0' || rubric == null) && documentsMetadata !== undefined ? (
+
+
+ {documentsMetadata[index] !== undefined ? (
+ getCaption(documentsMetadata[index].dc_title, documentsMetadata[index].dc_spatial, documentsMetadata[index].dc_creator, '(', ')')
+ ) : ('')}
+
+
+ ) : (null)
+ }
{chunk}
diff --git a/frontend/tests/outcome.js b/frontend/tests/outcome.js
index 0720f45f..e2ceae9b 100644
--- a/frontend/tests/outcome.js
+++ b/frontend/tests/outcome.js
@@ -200,6 +200,10 @@ Alors("la colonne {int} contient {string}", (column, text) => {
cy.contains(`.lectern .main .col .col:nth-child(${column})`, text);
});
+Alors("l'entête de la colonne {int} est {string}", (column, text) => {
+ cy.contains(`.lectern .row .main .col .row .col:nth-child(${column}) span.work`, text);
+});
+
Alors("la glose en mode édition contient {string}", (text) => {
cy.click_on_text('content', '…');
cy.get('textarea').should('contain', text);