-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add code to the hook so it can actually save a screenshot on error & …
…create a 2nd feature file
- Loading branch information
1 parent
442403f
commit 48b5466
Showing
2 changed files
with
19 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Feature: Ecommerce2 validations | ||
|
||
Scenario: Placing the Order | ||
Given a login to Ecommerce2 application with "[email protected]" and "Password1" | ||
Then Verify Error Message is displayed | ||
|
||
# await page.goto("https://rahulshettyacademy.com/loginpagePractise/"); | ||
# await userNameInput.fill("rahulshe"); | ||
# await page.locator("[type='password']").fill("learning"); | ||
# await signInButton.click(); | ||
# # //no explicit wait needed like selenium (takes one from config 30s) | ||
# console.log(await page.locator("[style*='block']").textContent()); // grab text | ||
# await expect(page.locator("[style*='block']")).toContainText('Incorrect'); //no need to have all text, just one word in this case | ||
|
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