-
-
Notifications
You must be signed in to change notification settings - Fork 449
Fix swatch sort order and lowercase labels #5133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Cypress end-to-end tests to verify the fix for swatch sort order and lowercase labels functionality. The tests validate that configurable product swatches (for attributes like color and size) display with proper capitalization and maintain correct sort order on both product pages and category listing pages.
- Adds Cypress tests for product and category pages with configurable swatches
- Sets up test configuration for catalog product and category pages
- Tests verify swatch attributes display correctly with expected labels and order
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| cypress/e2e/openmage/frontend/catalog/product.cy.js | Tests for swatch display on product detail pages (color and size attributes) |
| cypress/e2e/openmage/frontend/catalog/category.cy.js | Tests for swatch display on category listing pages (color attribute) |
| cypress/support/openmage/frontend/catalog/product.js | Configuration object for product page tests |
| cypress/support/openmage/frontend/catalog/catagory.js | Configuration object for category page tests (filename has typo) |
| cypress/support/openmage/_utils/test.js | Adds catalog namespace objects to test utility structure |
| cypress/support/e2e.js | Imports new catalog test support files |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Co-authored-by: Copilot <[email protected]>
With sample data it would be easier to repruce and add tests. In your bug report you said the order is reversed, now you are saying the order is correct? Please check the positions for the swatch options. |
|
I stated why sample data should not be used for this bug. It is OpenMage from scratch. Just add a configurable attribute size, create 1 product configurable with 1 simple product associated. I never said that the order is correct. If you look above in my post from 8 hours ago you will see what your change looks like and what the change looks like when that normalization does not exist. |
Why? I dont see it.
Wth removing the normalzation the order is still reversed for me. Tested with plain install, mannually created attributes and products ... Dont know whats different for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.
...esign/frontend/rwd/default/template/configurableswatches/catalog/product/list/swatches.phtml
Outdated
Show resolved
Hide resolved
...esign/frontend/rwd/default/template/configurableswatches/catalog/product/list/swatches.phtml
Outdated
Show resolved
Hide resolved
...esign/frontend/rwd/default/template/configurableswatches/catalog/product/list/swatches.phtml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
...esign/frontend/rwd/default/template/configurableswatches/catalog/product/list/swatches.phtml
Show resolved
Hide resolved
...esign/frontend/rwd/default/template/configurableswatches/catalog/product/list/swatches.phtml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
|






Description (*)
Remove normalization from
Mage_ConfigurableSwatches_Helper_Mediafallback::attachProductChildrenAttributeMapping()for labels. (added in Magento 1.9.3)Fixed Issues (if relevant)
Questions or comments
@addison74 can you please test with sample data?
sizeas swatch-attribute for product listing