Skip to content

test(ui5-time-picker-clock): TimePickerClock cypress tests#11680

Merged
nnaydenow merged 2 commits intomainfrom
BL_timepicker_tests
Jun 12, 2025
Merged

test(ui5-time-picker-clock): TimePickerClock cypress tests#11680
nnaydenow merged 2 commits intomainfrom
BL_timepicker_tests

Conversation

@NHristov-sap
Copy link
Copy Markdown
Contributor

Cypress tests for TimePickerClock component

Comment thread packages/main/cypress/specs/TimePickerClock.cy.tsx Outdated
Comment thread packages/main/cypress/specs/TimePickerClock.cy.tsx Outdated
Comment thread packages/main/cypress/specs/TimePickerClock.cy.tsx Outdated
Comment thread packages/main/cypress/specs/TimePickerClock.cy.tsx Outdated
it("'disabled' property", () => {
cy.mount(
<>
<div style="display: inline-block; text-align: center; width: 18rem; height: 18rem; touch-action: none; margin: 2rem;">
Copy link
Copy Markdown
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
Copy Markdown
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