Skip to content

Tests: cypress update - add admin store switcher helper#5045

Draft
sreichel wants to merge 21 commits intoOpenMage:mainfrom
sreichel:cypress/update-store-switcher
Draft

Tests: cypress update - add admin store switcher helper#5045
sreichel wants to merge 21 commits intoOpenMage:mainfrom
sreichel:cypress/update-store-switcher

Conversation

@sreichel
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 29, 2025 06:28
Copy link
Copy Markdown
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()

Comment thread cypress/support/openmage/_utils/admin.js Outdated
Comment thread cypress/support/openmage/_utils/test.js Outdated
sreichel and others added 2 commits October 29, 2025 07:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sreichel sreichel marked this pull request as draft October 30, 2025 01:40
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Nov 6, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
7.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
8.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@sreichel sreichel modified the milestone: 20.17.0 Dec 18, 2025
@sreichel sreichel added this to the 20.18.0 milestone Dec 19, 2025
@sreichel sreichel modified the milestones: 20.18.0, 20.19.0 Apr 20, 2026
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.

2 participants