Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions frontend/scenarios/create_document.feature
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ Scénario: en gardant certaines des métadonnées du document source
"""
dc_isPartOf: Archéologie préventive (IF14)
"""
Scénario: En tant qu'hexaple par sélection de plusieurs documents
Soit la liste des documents affichée
Et une session active avec mon compte
Et ayant sélectionné les documents "Traduction A" et "Traduction B"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you mention data, they must really exist in the sample data.

Quand j'essaie de créer une glose de type "Quotation"
Alors la glose ouverte contient les références à "Traduction A"
Copy link
Copy Markdown
Member

@benel benel Jun 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should mention real content related to your included document.

Et la glose ouverte contient les références à "Traduction B"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should mention real content related to your included document.

4 changes: 4 additions & 0 deletions frontend/tests/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,7 @@ Soit("{string} le nom de la licence du document principal", (license) => {
cy.get('.license').eq(0).should('contain', license);
});

Soit("ayant sélectionné les documents {string} et {string}", (doc1, doc2) => {
cy.contains('.list-group-item', doc1).find('input[type="checkbox"]').check();
cy.contains('.list-group-item', doc2).find('input[type="checkbox"]').check();
});
5 changes: 5 additions & 0 deletions frontend/tests/outcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,8 @@ Alors("{string} est à la ligne {int} du passage", (text, line) => {
});
});

Alors("la glose ouverte contient les références à {string}", (title) => {
cy.get('.scholium .sources')
.should('be.visible')
.and('contain', title);
});
Loading