We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2a080 commit ca1da5dCopy full SHA for ca1da5d
1 file changed
frontend/tests/outcome.js
@@ -9,6 +9,14 @@ Alors("{string} est la glose ouverte", (title) => {
9
cy.get('.runningHead .scholium').should('contain', title);
10
});
11
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
+
20
Alors("je peux lire {string}", (text) => {
21
cy.get('body').should('contain', text);
22
0 commit comments