🔴 HIGH - Core user management functionality
Migrate User Administration wdio test to Cypress. This test covers managing user accounts and changing user names.
-
user-administration.name-change.spec.ts- User name modification
- wdio tests:
eform-client/e2e/Tests/user-administration/ - Target location:
eform-client/cypress/e2e/e/(or appropriate grouping)
- Should navigate to user administration page
- Should edit user's name successfully
- Should validate name requirements
- Should save changes and verify update
- Should handle cancellation without saving
- Should display appropriate messages on success/failure
- Action: Create Page Object for user administration in Cypress
- Reference: Check if user administration page object exists in wdio version
- Navigate to user administration page
- Select/identify user to edit
- Open edit dialog/form
- Modify user name
- Save changes
- Verify name update in user list
- Test cancellation scenario
- Test validation rules (if any)
- Test file migrated to Cypress
- Tests follow existing Cypress patterns
- Page object created for user administration
- All user name change scenarios covered
- Success and error paths tested
- Tests pass locally
- Tests pass in CI/CD pipeline
- Test user properly cleaned up or reset
- Use
cy.intercept()for user administration API calls - Handle user selection/identification properly
- Ensure test doesn't modify real/important users
- Use test user accounts that can be safely modified
- Consider pagination if user list is large
- Login functionality (already available in Cypress)
- User administration page navigation
- Test user account
Small (1-2 hours) - Single test file with straightforward functionality
Before closing this issue:
- Test scenarios pass
- Name change persists correctly
- Validation rules enforced
- Cancel functionality works
- Test data properly managed
- No unintended side effects on other users
- Test is deterministic
- Code reviewed
- Update
WDIO_TO_CYPRESS_MIGRATION.mdprogress tracking