codeant-ai-for-open-source[bot] commented on PR #38682:
URL: https://github.com/apache/superset/pull/38682#issuecomment-4071415378

   ## **Sequence Diagram**
   
   This PR adds targeted unit tests for the new GranularExportControls feature 
flag. The tests verify both the enum string mapping and that the flag is 
recognized as enabled when present in window feature flags, restoring full 
TypeScript coverage.
   
   ```mermaid
   sequenceDiagram
       participant TestRunner
       participant FeatureFlagEnum
       participant BrowserWindow
       participant FeatureCheck
   
       TestRunner->>FeatureFlagEnum: Read GranularExportControls value
       FeatureFlagEnum-->>TestRunner: GRANULAR_EXPORT_CONTROLS
       TestRunner->>BrowserWindow: Set featureFlags with 
GRANULAR_EXPORT_CONTROLS true
       TestRunner->>FeatureCheck: Call isFeatureEnabled with 
GranularExportControls
       FeatureCheck->>BrowserWindow: Read feature flag state
       FeatureCheck-->>TestRunner: Return true and assertion passes
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to