How lazkorsan/qa101-instulearn-ui works
This repository is a Playwright UI test-automation framework for InstuLearn, with two execution styles: native Playwright specs and Cucumber/Gherkin scenarios. The principal BDD path is feature scenario → step definition → page object or verification helper → tested site; Cucumber hooks provision and clean up the browser context. Native specs provide a separate direct-test path. The graph preserves the documented Dashboard, Example, Store, Student, and Quiz test areas. Some feature-to-step wiring and unsampled domain implementations are documented or represented only by their tree paths; edges are omitted where the excerpts do not establish a call.
Main entry points: step-definitions Cucumber step definitions · StudentPage.ts Student page workflows · features Gherkin features · BasePage.ts Base page actions
Components 18
Test execution
- Cucumber step definitions
src/step-definitions - Browser lifecycle hooks
src/step-definitions/hooks.ts - Cucumber runner
src/Runners/Runner.ts
Test scenarios
- Native Playwright tests
src/NativeTest - Gherkin features
src/features - Quiz scenarios
src/NativeTest/Quiz
Page objects
- Base page actions
src/pages/BasePage.ts - Student page workflows
src/pages/StudentPage.ts - Dashboard page workflows
src/pages/DashboardPage.ts - Example page workflows
src/pages/ExamplePage.ts - Store page workflows
src/pages/StorePage.ts
Test helpers
- Verification helpers
src/utils/ReusableMethods.ts - Browser interaction utilities
src/utils/ClickUtils.ts
Logging and state
- Execution logger
src/utils/LoggerHelper.ts - Cucumber scenario logger
src/step-definitions/LoginPluginLogger.ts - Account storage
src/utils/AccountStorageHelper.ts
Other components
- Test author
- InstuLearn QA site
Connections 20
- Test author → Native Playwright tests: writes tests
Readme.md - Test author → Gherkin features: writes scenarios
Readme.md - Native Playwright tests → InstuLearn QA site: tests UI
Readme.md - Cucumber runner → Gherkin features: runs scenarios
- Gherkin features → Cucumber step definitions: dispatches steps
Readme.md - Cucumber step definitions → Student page workflows: calls page methods
src/step-definitions/StudentSteps.ts - Cucumber step definitions → Dashboard page workflows: calls page methods
src/step-definitions/DashboardSteps.ts - Cucumber step definitions → Example page workflows: calls page methods
src/step-definitions/ExampleSteps.ts - Cucumber step definitions → Verification helpers: calls verifications
src/step-definitions/ExampleSteps.ts - Cucumber step definitions → Account storage: saves account data
src/step-definitions/StudentSteps.ts - Cucumber step definitions → Execution logger: writes execution logs
src/step-definitions/ExampleSteps.ts - Browser lifecycle hooks → Cucumber scenario logger: logs scenario lifecycle
src/step-definitions/hooks.ts - Browser lifecycle hooks → InstuLearn QA site: opens browser context
src/step-definitions/hooks.ts - Student page workflows → Base page actions: extends actions
src/pages/StudentPage.ts - Dashboard page workflows → Base page actions: extends actions
src/pages/DashboardPage.ts - Example page workflows → Base page actions: extends actions
src/pages/ExamplePage.ts - Student page workflows → Execution logger: logs workflow
src/pages/StudentPage.ts - Account storage → Execution logger: logs storage result
src/utils/AccountStorageHelper.ts - Verification helpers → InstuLearn QA site: verifies page state
- Quiz scenarios → InstuLearn QA site: tests UI
Readme.md