🟡 MEDIUM - Content organization feature
Migrate Folders wdio tests to Cypress. These tests cover hierarchical folder management including both folder tree structure and child folder operations.
-
folder-tree.add.spec.ts- Adding folders to tree -
folder-tree.delete.spec.ts- Deleting folders from tree -
folder-tree.edit.spec.ts- Editing folder properties
-
folder-child.add.spec.ts- Adding child folders -
folder-child.delete.spec.ts- Deleting child folders -
folder-child.edit.spec.ts- Editing child folders
- wdio tests:
eform-client/e2e/Tests/folders/folder-tree/andfolder-child/ - Target location:
eform-client/cypress/e2e/f/(or appropriate grouping)
folder-tree.add.spec.ts
- Should add root level folder
- Should add folder at specific level
- Should validate folder name required
- Should verify folder appears in tree
folder-tree.edit.spec.ts
- Should edit folder name
- Should edit folder properties
- Should verify changes in tree structure
folder-tree.delete.spec.ts
- Should delete folder (empty)
- Should handle deletion with confirmation
- Should verify folder removed from tree
folder-child.add.spec.ts
- Should add child folder to parent
- Should create nested folder structure
- Should validate parent-child relationship
folder-child.edit.spec.ts
- Should edit child folder name
- Should edit child folder properties
- Should maintain parent relationship
folder-child.delete.spec.ts
- Should delete child folder
- Should maintain parent folder after child deletion
- Should handle deletion confirmations
- Existing:
Folders.page.tsin wdio - Action: Create Cypress version of Folders page object
- Navigate to folders management page
- Tree structure display and navigation
- CRUD operations on folders
- Parent-child relationships
- Folder hierarchy validation
- Folder properties (name, description, etc.)
- Nested folder operations
- All 6 test files migrated to Cypress
- Tests follow existing Cypress patterns
- Page objects created for folders management
- Tree structure properly tested
- Parent-child relationships validated
- All test scenarios covered
- Tests pass locally
- Tests pass in CI/CD pipeline
- Folder hierarchy properly cleaned up
- Use
cy.intercept()for folder API calls - Handle tree structure rendering and expansion
- Test both tree view and child folder operations
- Ensure proper cleanup of test folders (deletion in reverse order)
- Consider using data-testid attributes for reliable selectors
- May need to handle asynchronous tree loading
// Example: Expanding tree nodes
cy.get('[data-testid="folder-tree-node"]').first().click();
// Example: Verifying hierarchy
cy.get('[data-testid="folder-tree"]')
.find('[data-level="1"]')
.should('contain', 'Parent Folder');
cy.get('[data-testid="folder-tree"]')
.find('[data-level="2"]')
.should('contain', 'Child Folder');- Login functionality (already available in Cypress)
- Navigation to folders page
- Tree component rendering
Medium-Large (4-5 hours) - Multiple tests with tree structure complexity
- Consider splitting into two sub-issues if too large:
- Issue 5A: Folder Tree Tests (3 tests)
- Issue 5B: Folder Child Tests (3 tests)
- Tree operations may need special handling for expand/collapse
- Cleanup is important - delete in correct order (children first)
Before closing this issue:
- All 6 test files passing
- Tree structure operations working
- Parent-child relationships correct
- Folder CRUD operations validated
- Test folders properly cleaned up
- No orphaned folders after tests
- Tests are deterministic
- Tree rendering stable
- Code reviewed
- Update
WDIO_TO_CYPRESS_MIGRATION.mdprogress tracking