🔴 HIGH - Critical for mobile device user management testing
Migrate Device Users wdio tests to Cypress. Device users represent mobile device operators who use the eForm mobile application. These tests cover the complete CRUD lifecycle.
-
device-users.add.spec.ts- Creating device users with validation -
device-users.delete.spec.ts- Deleting device users -
device-users.edit.spec.ts- Editing device user details
- wdio tests:
eform-client/e2e/Tests/device-users/ - Target location:
eform-client/cypress/e2e/d/(or appropriate grouping)
- Should add new device user with first name and last name
- Should NOT add device user with only first name (validation)
- Should NOT add device user with only last name (validation)
- Should NOT add device user without first and last names (validation)
- Should NOT create user if cancel was clicked
- Should clean up created test data
- Should edit device user's first name
- Should edit device user's last name
- Should edit both first name and last name
- Should validate required fields during edit
- Should delete device user successfully
- Should confirm deletion in modal dialog
- Should cancel deletion when cancel is clicked
- Existing:
DeviceUsers.page.tsineform-client/e2e/Page objects/ - Action: Create/adapt Cypress version in
eform-client/cypress/e2e/
- Navigate to Device Users page via navbar
- Create device user with validation (both fields required)
- Edit device user details
- Delete device user with confirmation
- Row counting and data verification
- All 3 test files migrated to Cypress
- Tests follow existing Cypress patterns (see
cypress/e2e/a/,cypress/e2e/b/) - Page objects created/adapted for Cypress
- All test scenarios from wdio tests are covered
- Tests pass locally
- Tests pass in CI/CD pipeline
- Code follows Cypress best practices (proper use of cy.intercept, cy.wait, etc.)
- Use
cy.intercept()for API calls related to device users - Ensure proper cleanup in
afterEachhooks - Use existing
loginPagepattern for authentication - Reference existing Cypress tests for patterns (e.g.,
my-eforms.delete-eform.spec.cy.ts)
- Existing Page Objects in wdio format
- Login functionality (already available in Cypress)
- Navbar navigation (already available in Cypress)
Medium (2-3 hours) - Straightforward CRUD operations with existing patterns to follow
Before closing this issue:
- All test scenarios pass
- No console errors during test execution
- Tests are deterministic (no flaky tests)
- Test data is properly cleaned up
- Page objects are reusable
- Code reviewed and follows project conventions
- Update
WDIO_TO_CYPRESS_MIGRATION.mdprogress tracking