-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0079836
commit 8885ac9
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]") | ||
|