-
-
Notifications
You must be signed in to change notification settings - Fork 452
Tests: cypress update - add admin store switcher helper #5045
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 refactors the Cypress test infrastructure for system configuration testing by centralizing common configuration patterns and introducing a new test suite for general store settings.
Key changes:
- Introduces a centralized
__systemConfigbase object to reduce code duplication across system configuration tests - Adds new support and test structure for general configuration section (store information)
- Refactors existing test files to use the standardized
config.clickSave()method instead of deprecatedcy.adminSaveConfiguration() - Enhances validation utility to handle optional CSS validation checks
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| cypress/support/openmage/backend/system/config/general/general.js | Defines configuration objects for the General system settings section with store information fields |
| cypress/support/openmage/backend/system/config/catalog/sitemap.js | Refactors to use centralized __systemConfig and reorganizes priority fields into separate category/product/page objects |
| cypress/support/openmage/_utils/validation.js | Adds conditional check for optional CSS validation in field filling logic |
| cypress/support/openmage/_utils/test.js | Adds __systemConfig base object, updates JSDoc formatting, and creates namespace for general configuration tests |
| cypress/support/openmage/_utils/admin.js | Adds goToConfigScope helper function for store switcher navigation |
| cypress/support/e2e.js | Imports new general configuration support file |
| cypress/e2e/openmage/backend/system/config/general/general.cy.js | Empty test file placeholder |
| cypress/e2e/openmage/backend/system/config/catalog/sitemap.cy.js | Updates to use config.clickSave() and restructured __groupPriority fields |
| cypress/e2e/openmage/backend/system/config/catalog/configswatches.cy.js | Replaces deprecated cy.adminSaveConfiguration() with config.clickSave() |
Co-authored-by: Copilot <[email protected]>
|



No description provided.