Skip to content

Commit ca1da5d

Browse files
Sidqui-YoussefAmine-jabote
authored andcommitted
TEST: Turn paragraphs into speech turns (see #224).
Co-authored-by: Amine-jabote <mohamed_amine.jabote@utt.fr>
1 parent 7a2a080 commit ca1da5d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

frontend/tests/outcome.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Alors("{string} est la glose ouverte", (title) => {
99
cy.get('.runningHead .scholium').should('contain', title);
1010
});
1111

12+
Alors("{string} est en gras", (texte) => {
13+
cy.get(".scholium").eq(1).find("strong")
14+
.should(($strong) => {
15+
const strongText = $strong.map((i, el) => Cypress.$(el).text().trim()).get();
16+
expect(strongText).to.include(texte);
17+
});
18+
});
19+
1220
Alors("je peux lire {string}", (text) => {
1321
cy.get('body').should('contain', text);
1422
});

0 commit comments

Comments
 (0)