How vijayangit2026/webdriverio_cucumber works
This repository is a WebdriverIO/Cucumber UI-automation framework for SauceDemo. Gherkin login and checkout scenarios are loaded with their step definitions; scenario hooks provide page objects, and steps use those objects and test-user data to exercise the site. Checkout also verifies and renames the downloaded order PDF. WebdriverIO configures Chrome and Allure reporting. The map reflects the supplied source excerpts and README; other feature details and unsampled modules are not inferred.
Main entry points: checkout.steps.js Checkout and PDF steps · wdio.conf.js WDIO configuration · hooks.js Scenario hooks · login.steps.js Login steps
Components 17
BDD scenarios
- Login scenarios
features/login.feature - Checkout scenarios
features/checkout.feature
Step automation
- Login steps
features/step-definitions/login.steps.js - Checkout and PDF steps
features/step-definitions/checkout.steps.js - Scenario hooks
support/hooks.js - Test users
test-data/users.js
Page objects
- Login page
pageobjects/login.page.js - Inventory page
pageobjects/inventory.page.js - Cart page
pageobjects/cart.page.js - Checkout information
pageobjects/checkout-information.page.js - Checkout overview
pageobjects/checkout-overview.page.js - Checkout completion
pageobjects/checkout-complete.page.js
Runtime and outputs
- WDIO configuration
wdio.conf.js - Downloaded order PDFs
pdf_download - Allure reporting
Other components
- SauceDemo website
- Chrome browser
Connections 32
- WDIO configuration → Login scenarios: loads specs
wdio.conf.js - WDIO configuration → Checkout scenarios: loads specs
wdio.conf.js - WDIO configuration → Login steps: loads steps
wdio.conf.js - WDIO configuration → Checkout and PDF steps: loads steps
wdio.conf.js - WDIO configuration → Scenario hooks: loads hooks
wdio.conf.js - WDIO configuration → Chrome browser: configures
wdio.conf.js - WDIO configuration → Allure reporting: configures reporter
wdio.conf.js - Login steps → Test users: reads credentials
features/step-definitions/login.steps.js - Checkout and PDF steps → Test users: reads credentials
features/step-definitions/checkout.steps.js - Scenario hooks → Login page: registers on world
support/hooks.js - Scenario hooks → Inventory page: registers on world
support/hooks.js - Scenario hooks → Cart page: registers on world
support/hooks.js - Scenario hooks → Checkout information: registers on world
support/hooks.js - Scenario hooks → Checkout overview: registers on world
support/hooks.js - Scenario hooks → Checkout completion: registers on world
support/hooks.js - Login steps → Login page: uses page
features/step-definitions/login.steps.js - Login steps → Inventory page: checks page
features/step-definitions/login.steps.js - Checkout and PDF steps → Login page: uses page
features/step-definitions/checkout.steps.js - Checkout and PDF steps → Inventory page: uses page
features/step-definitions/checkout.steps.js - Checkout and PDF steps → Cart page: uses page
features/step-definitions/checkout.steps.js - Checkout and PDF steps → Checkout information: uses page
features/step-definitions/checkout.steps.js - Checkout and PDF steps → Checkout overview: uses page
features/step-definitions/checkout.steps.js - Checkout and PDF steps → Checkout completion: uses page
features/step-definitions/checkout.steps.js - Login page → SauceDemo website: drives website
pageobjects/login.page.js - Inventory page → SauceDemo website: drives website
pageobjects/inventory.page.js - Cart page → SauceDemo website: drives website
pageobjects/cart.page.js - Checkout information → SauceDemo website: drives website
pageobjects/checkout-information.page.js - Checkout overview → SauceDemo website: drives website
pageobjects/checkout-overview.page.js - Checkout completion → SauceDemo website: drives website
pageobjects/checkout-complete.page.js - Checkout and PDF steps → Downloaded order PDFs: verifies and renames
features/step-definitions/checkout.steps.js - Checkout completion → Chrome browser: initiates download
pageobjects/checkout-complete.page.js - Chrome browser → Downloaded order PDFs: downloads file