Skip to content

chore: extend form-validity test for ui5-checkbox and ui5-select #11823

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

kineticjs
Copy link
Contributor

@kineticjs kineticjs commented Jul 1, 2025

In relation to #10487, extend the tests to check that both ui5-checkbox and ui5-select correctly expose a "validity" property and related methods required by the Constraint Validation API, as well as are selectable using the :invalid CSS pseudo class.

@kineticjs kineticjs requested a review from Copilot July 1, 2025 17:33
Copy link
Contributor

@Copilot 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 extends form-support tests for ui5-checkbox and ui5-select to verify they expose the Constraint Validation API (validity, checkValidity(), reportValidity()) and respond to the :invalid CSS pseudo-class.

  • Added validity checks and :invalid selector assertions for #cb5 (checkbox)
  • Added validity checks and :invalid selector assertions for #select9 (select)
Comments suppressed due to low confidence (1)

packages/main/cypress/specs/FormSupport.cy.tsx:55

  • [nitpick] Indentation in this added block is inconsistent with the surrounding code. Align the spacing with the project’s style guide to keep formatting uniform.
			.then($el => {

@kineticjs kineticjs force-pushed the cb-select-enhance-validity branch from a75466a to 0b266f6 Compare July 1, 2025 18:25
@kineticjs kineticjs marked this pull request as ready for review July 11, 2025 06:14
@yanaminkova yanaminkova requested a review from dobrinyonkov July 16, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant