Fixes #15007 /ok-to-test tags="@tag.Theme" <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10733545727> > Commit: dec21477152095d034f63a7e08d2719cb0687b12 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10733545727&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Theme` > Spec: > <hr>Fri, 06 Sep 2024 06:48:00 UTC <!-- end of auto-generated comment: Cypress test results --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced theme validation for the multi-select widget, improving the robustness of theme-related tests. - Added new locators for featured themes to enhance testing capabilities. - **Bug Fixes** - Reactivated a previously skipped test case to validate font consistency across the application. - **Refactor** - Optimized color change handling in the ColorPicker component for better performance and reliability. - Refactored theme color control logic for improved maintainability and clarity. - **Improvements** - Enhanced type safety in theme properties to prevent misconfigurations. - Improved testability of the ThemeCard and ThemeSelector components with new attributes for automated testing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro-2.local>
15 lines
714 B
JSON
15 lines
714 B
JSON
{
|
|
"canvas": "#canvas-selection-0",
|
|
"border": ".t--theme-appBorderRadius",
|
|
"popover": ".rc-tooltip-inner",
|
|
"shadow": ".t--theme-appBoxShadow",
|
|
"color": ".t--property-pane-sidebar .bp3-popover-target .cursor-pointer",
|
|
"inputColor": ".t--colorpicker-v2-popover [data-testid='t--color-picker-input']",
|
|
"colorPicker": "[data-testid='color-picker']",
|
|
"greenColor": "[style='background-color: rgb(21, 128, 61);']",
|
|
"fontsSelected": ".leading-normal",
|
|
"currentTheme": ".cursor-pointer:contains('Applied theme')",
|
|
"purpleColor": "[style='background-color: rgb(107,114,128);']",
|
|
"featuredThemeSection": "[data-testid='t--featured-themes']",
|
|
"fontOption": ".rc-virtual-list .rc-select-item-option"
|
|
} |