Add Merchant Management integration tests for role-based CRUD operations including actual editing functions#589
Conversation
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
|
@copilot do the tests actually carry out the merchant editing functions like updating details, add/remove contracts and operators and making deposits if not could tests be added for these functions |
…ails, add/remove operators/contracts/devices, make deposits) Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
The initial tests only verified page navigation and visibility. I've now added 11 new test scenarios that actually perform the merchant editing operations: Edit Operations:
Operator Management:
Contract Management:
Device Management:
Deposit:
All scenarios include success message verification and check that the operations complete correctly. Committed in 0fa3cfa. |
…w feedback Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Implements a comprehensive integration test suite for Merchant Management functionality covering Admin, Estate, and Viewer role permissions using Reqnroll, Playwright, and Shouldly.
Files Added
MerchantManagement.feature- 36 Gherkin scenarios across 3 user rolesMerchantManagementPageHelper.cs- Playwright page object with methods for:MerchantManagementSteps.cs- Step definitions linking Gherkin to helper methodsTest Coverage
Viewing Operations
Actual Editing Operations (NEW)
All editing operations include success message verification and list verification for add/remove operations.
Test Data
All assertions reference hardcoded values from
StubbedMediatorService.cs:Documentation
Updated
README.mdwith merchant test data reference and execution filters:Notes
Application startup logic for test execution to be implemented separately per issue requirements.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.