How lazkorsan/qa701-instulearn-ui works
This is a Playwright/TypeScript UI test framework for InstuLearn, with native Playwright tests and a separate Cucumber/Gherkin workflow. The principal BDD path is feature scenarios → step definitions → page objects and shared verification helpers → the tested site; Cucumber hooks manage browser contexts and scenario logging. Native tests provide a direct-code route for checking workflows such as login, registration, and course creation. The graph includes the indexed shared utilities; unsampled test and runner internals are not assigned speculative call links.
Main entry points: StudentSteps.ts Student steps · ExampleSteps.ts Example steps · StudentPage.ts Student page · features Gherkin features
Components 19
Test execution
- Native tests
src/NativeTest - Cucumber runners
src/Runners
BDD workflow
- Gherkin features
src/features - Example steps
src/step-definitions/ExampleSteps.ts - Student steps
src/step-definitions/StudentSteps.ts - Browser hooks
src/step-definitions/hooks.ts - Scenario logger
src/step-definitions/LoginPluginLogger.ts
Page objects
- Example page
src/pages/ExamplePage.ts - Student page
src/pages/StudentPage.ts - Base page
src/pages/BasePage.ts
Shared utilities
- Reusable checks
src/utils/ReusableMethods.ts - Account storage
src/utils/AccountStorageHelper.ts - Shared logger
src/utils/LoggerHelper.ts - Click utilities
src/utils/ClickUtils.ts - Select utilities
src/utils/SelectUtils.ts - Input utilities
src/utils/SendKeysUtils.ts - Robot utilities
src/utils/RobotUtils.ts
Other components
- Test author
- InstuLearn site
Connections 17
- Test author → Native tests: writes tests
Readme.md - Test author → Gherkin features: writes scenarios
Readme.md - Gherkin features → Example steps: binds steps
Readme.md - Example steps → Example page: calls methods
src/step-definitions/ExampleSteps.ts - Student steps → Student page: calls methods
src/step-definitions/StudentSteps.ts - Example steps → Reusable checks: verifies URL
src/step-definitions/ExampleSteps.ts - Student steps → Reusable checks: verifies URL
src/step-definitions/StudentSteps.ts - Student steps → Account storage: imports helper
src/step-definitions/StudentSteps.ts - Example page → Base page: extends
src/pages/ExamplePage.ts - Student page → Base page: extends
src/pages/StudentPage.ts - Student page → Account storage: saves accounts
src/pages/StudentPage.ts - Account storage → Shared logger: logs events
src/utils/AccountStorageHelper.ts - Browser hooks → Scenario logger: logs scenarios
src/step-definitions/hooks.ts - Example steps → InstuLearn site: navigates browser
src/step-definitions/ExampleSteps.ts - Student steps → InstuLearn site: navigates browser
src/step-definitions/StudentSteps.ts - Native tests → InstuLearn site: tests workflows
Readme.md - Cucumber runners → Gherkin features: runs features