ACS 9871 - add additional transformation rule tests (#4927)

* ACS-9871: Add transformation rule tests and supporting methods

* ACS-9871: Add transformation rule tests and supporting methods (Addressed PR Comments)

* ACS-9871: Fix async expect pattern in transformation tests

* ACS-9871: Add readonly modifiers and clean up code formatting

* ACS-9871: Simplify expect statements and reorder assertions

* ACS-9871: Refactor transformation tests with helper function

- Add testTransformation helper function to reduce code duplication
- Refactor PDF, BMP, and JPG transformation tests to use helper
- Improve test maintainability and readability
- Add comprehensive JSDoc documentation

* ACS-9871: Replace any types with proper Page Object types

- Replace 'any' with PersonalFilesPage, NodesPage, and LoginPage
- Add proper imports for page object types
- Improve type safety in testTransformation helper function

* ACS-9871: Add image transformation tests for GIF, TIFF, and PNG - Add new test cases for GIF, TIFF, and PNG transformations - Add MimeType enums for GIFImage, TIFFImage, and PNGImage - Add TIFF_FILE and BMP_FILE to test-files registry - Add physical test files (file-tif.tif, file-bmp.bmp) - Test multiple image format conversions (JPG, PNG, BMP, GIF, TIFF)

* Fix parallel test execution by removing logout/login cycle in transformation tests

* Refactor transformation tests to reduce code duplication for SonarQube

* Refactor transformation tests following Single Responsibility Principle and extract TestFileConfig interface to shared models

* Replace any type with Page type in triggerTransformation function
This commit is contained in:
Rakesh Ghosal
2025-12-17 15:03:11 +05:30
committed by GitHub
parent 3f25c12b6f
commit 44b8ec53d8
7 changed files with 197 additions and 40 deletions
@@ -51,7 +51,12 @@ export enum ActionType {
}
export enum MimeType {
AdobePDFDocument = 'Adobe PDF Document [application/pdf]'
AdobePDFDocument = 'Adobe PDF Document [application/pdf]',
BitmapImage = 'Bitmap Image [image/bmp]',
JPEGImage = 'JPEG Image [image/jpeg]',
GIFImage = 'GIF Image [image/gif]',
TIFFImage = 'TIFF Image [image/tiff]',
PNGImage = 'PNG Image [image/png]'
}
export class ActionsDropdownComponent extends BaseComponent {