Skip to content

Commit

Permalink
Update README.md (Examples)
Browse files Browse the repository at this point in the history
Fixed issues where Gherkin description for the example tests were swapped
  • Loading branch information
shayfaber authored Jan 13, 2025
1 parent ce7ceca commit 4ca773e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ Below are some example tests to illustrate how to write and structure your tests

```javascript
/**
* @feature Product Checkout
* @scenario User completes a purchase
* @given I have a product in my cart
* @when I proceed to checkout
* @and I complete the checkout process
* @then I should receive an order confirmation
* @feature User Registration
* @scenario User successfully registers on the website
* @given I am on the registration page
* @when I fill in the registration form with valid data
* @and I submit the form
* @then I should see a confirmation message
*/
test('User can register an account', async ({ page }) => {
// Implementation details
Expand All @@ -200,12 +200,12 @@ test('User can register an account', async ({ page }) => {

```javascript
/**
* @feature User Registration
* @scenario User successfully registers on the website
* @given I am on the registration page
* @when I fill in the registration form with valid data
* @and I submit the form
* @then I should see a confirmation message
* @feature Product Checkout
* @scenario User completes a purchase
* @given I have a product in my cart
* @when I proceed to checkout
* @and I complete the checkout process
* @then I should receive an order confirmation
*/
test('User can complete the checkout process', async ({ page }) => {
// Implementation details
Expand Down

0 comments on commit 4ca773e

Please sign in to comment.