Skip to content

Commit d27fa5d

Browse files
gd-uttragxorusLysakolie
committed
TEST: Page title should be updated when the user goes back to the bookshelf (see #174).
Co-authored-by: ragxorus <arthur@petigny.com> Co-authored-by: VIALA Morgane <morgane.viala@utt.fr>
1 parent a85629a commit d27fa5d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

frontend/tests/event.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,15 @@ Quand("j'essaie d'ajouter une image à une glose", () => {
145145
cy.get('[id="image-input"]').selectFile('../docs/architecture.png', {
146146
force: true,
147147
});
148+
})
149+
150+
Quand("le titre de l'onglet est {string}", (title) => {
151+
cy.title().should("eq", title);
148152
});
149153

154+
Quand("j'essaie de revenir à l'étagère", () => {
155+
cy.get(".navbar-brand").click();
156+
});
157+
Quand("je suis sur la page étagère", () => {
158+
cy.location("pathname").should("eq", "/");
159+
});

0 commit comments

Comments
 (0)