Skip to content

Conversation

@sreichel
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 29, 2025 06:28
Copy link
Contributor

Copilot AI left a 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 __systemConfig base 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 deprecated cy.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()

@sonarqubecloud
Copy link

@sreichel sreichel marked this pull request as draft October 30, 2025 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant