Skip to content

Conversation

NHristov-sap
Copy link
Contributor

Cypress tests for TimePickerClock component

it("'disabled' property", () => {
cy.mount(
<>
<div style="display: inline-block; text-align: center; width: 18rem; height: 18rem; touch-action: none; margin: 2rem;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be extracted into function which is going to be used into JSX to render the component

<div style="display: inline-block; text-align: center; width: 18rem; height: 18rem; touch-action: none; margin: 2rem;">
<TimePickerClock id="myHours12" label="myHours12" itemMin={1} itemMax={12} displayStep={1} selectedValue={12} active></TimePickerClock>
</div>
<div style="display: inline-block; text-align: center; width: 18rem; height: 18rem; touch-action: none; margin: 2rem;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use map with config object to render these time picker clocks

@nnaydenow nnaydenow merged commit f9e8b33 into main Jun 12, 2025
25 of 28 checks passed
@nnaydenow nnaydenow deleted the BL_timepicker_tests branch June 12, 2025 20:42
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.

2 participants