From b476d104985e38d913d0fdbd81181a4ab4829fb3 Mon Sep 17 00:00:00 2001 From: Liam Tiernan Date: Wed, 20 Apr 2022 15:30:10 -0400 Subject: [PATCH] Testing fix --- .../integration/bug-fix-ticket.spec.js | 4 +++ .../cypress/integration/read-status.spec.js | 34 ++++++++++--------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/client/cypress/integration/bug-fix-ticket.spec.js b/client/cypress/integration/bug-fix-ticket.spec.js index 8341093..4885852 100644 --- a/client/cypress/integration/bug-fix-ticket.spec.js +++ b/client/cypress/integration/bug-fix-ticket.spec.js @@ -26,7 +26,9 @@ describe("Bug Fix: Sending Messages", () => { cy.contains("Bob").click(); cy.get("input[name=text]").type("First message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Second message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Third message{enter}"); cy.contains("First message"); @@ -60,7 +62,9 @@ describe("Bug Fix: Sending Messages", () => { cy.contains("Bob").click(); cy.get("input[name=text]").type("Fourth message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Fifth message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Sixth message{enter}"); cy.contains("Fourth message"); diff --git a/client/cypress/integration/read-status.spec.js b/client/cypress/integration/read-status.spec.js index e15a697..bd683c9 100644 --- a/client/cypress/integration/read-status.spec.js +++ b/client/cypress/integration/read-status.spec.js @@ -1,48 +1,50 @@ /// -const alice = { - username: "Alice", - email: "alice@example.com", +const ringo = { + username: "Ringo", + email: "ringo@example.com", password: "Z6#6%xfLTarZ9U", }; -const bob = { - username: "Bob", - email: "bob@example.com", +const george = { + username: "George", + email: "george@example.com", password: "L%e$xZHC4QKP@F", }; describe("Read Status", () => { it("setup", () => { - cy.signup(alice.username, alice.email, alice.password); + cy.signup(ringo.username, ringo.email, ringo.password); cy.logout(); - cy.signup(bob.username, bob.email, bob.password); + cy.signup(george.username, george.email, george.password); cy.logout(); }); it("displays total unread", () => { - cy.login(alice.username, alice.password); + cy.login(ringo.username, ringo.password); - cy.get("input[name=search]").type("Bob"); - cy.contains("Bob").click(); + cy.get("input[name=search]").type("George"); + cy.contains("George").click(); cy.get("input[name=text]").type("First message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Second message{enter}"); + cy.wait(500) cy.get("input[name=text]").type("Third message{enter}"); cy.logout(); - cy.login(bob.username, bob.password); + cy.login(george.username, george.password); cy.contains("3"); cy.logout(); }); it("displays last read message", () => { - cy.login(bob.username, bob.password); - cy.contains("Alice").click(); + cy.login(george.username, george.password); + cy.contains("Ringo").click(); cy.logout(); - cy.login(alice.username, alice.password); - cy.contains("Bob").click(); + cy.login(ringo.username, ringo.password); + cy.contains("George").click(); cy.get("svg").should(($list) => { expect($list).to.have.length(6)