Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanvancea committed Apr 27, 2021
1 parent 0079836 commit 8885ac9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testcafe-getting-started/tests/authentication.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { Selector } from "testcafe";

// prettier-ignore
fixture `authentication suite`.page `https://qa-automation-practice.netlify.app/login.html`
test("login scenario", async (t) => {
test("login scenario - bad creds", async (t) => {
const emailField = Selector("#email");
const pswField = Selector("#password");
const loginBtn = Selector("#submitLoginBtn");
const responseMsgElement = Selector("#message");
const responseSuccessMessage = "You have successfully logged in";
const responseSuccessMessage =
"Bad credentials! Please try again! Make sure that you've registered.";

await t
.typeText(emailField, "[email protected]")
Expand Down

0 comments on commit 8885ac9

Please sign in to comment.