Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"cucumberautocomplete.steps": [
"${workspaceFolder}/steps/**/*.ts"
],
"cucumberautocomplete.syncfeatures": "features/**/*.feature",
"cucumberautocomplete.enableSnippets": true,
"cucumberautocomplete.strictGherkinCompletion": true
}
7 changes: 6 additions & 1 deletion cucumber.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
module.exports = {
default: `--require-module ts-node/register --require './steps/**/*.ts' --require './hooks/**/*.ts --format @cucumber/pretty-formatter`
default: "--require-module ts-node/register --require './steps/**/*.ts' --require './hooks/**/*.ts' --format @cucumber/pretty-formatter",
"cucumberautocomplete.steps": [
"steps/*.ts",
"steps/**/*.ts"
],
"cucumberautocomplete.syncfeatures": "features/*.feature"
};
10 changes: 8 additions & 2 deletions features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ Feature: Login Feature

Scenario: Validate the login page title
# TODO: Fix this failing scenario
Then I should see the title "Labs Swag"
Then I should see the title "Swag Labs"

Scenario: Validate login error message
Then I will login as 'locked_out_user'
# TODO: Add a step to validate the error message received
# TODO: Add a step to validate the error message received
Then I should see the error message "Epic sadface: Sorry, this user has been locked out."

Scenario: Validate logout
Then I will login as 'standard_user'
Then I will logout
Then I should see the login button
6 changes: 5 additions & 1 deletion features/product.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Feature: Product Feature
Then I will login as 'standard_user'
# TODO: Sort the items by <sort>
# TODO: Validate all 6 items are sorted correctly by price
Then I sort the items by "<sort>"
Then I validate all 6 items are sorted correctly by price
Examples:
# TODO: extend the datatable to paramterize this test
| sort |
| sort |
| Price (high to low) |
| Price (low to high) |
8 changes: 7 additions & 1 deletion features/purchase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ Feature: Purchase Feature
# TODO: Fill in the First Name, Last Name, and Zip/Postal Code
# TODO: Select Continue
# TODO: Select Finish
# TODO: Validate the text 'Thank you for your order!'
# TODO: Validate the text 'Thank you for your order!'
Then I select the cart
Then I select checkout
Then I fill in the checkout information with "First", "Last", "12345"
Then I select continue
Then I select finish
Then I validate the successful purchase text is "Thank you for your order!"
Loading
Loading