Skip to content

fix(cypress-commands): make the options optional for clickUi5ListItemByText #7316

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

Merged

Conversation

Jianrong-Yu
Copy link
Contributor

@Jianrong-Yu Jianrong-Yu commented May 8, 2025

In the last commit for cypress-commands/src/commands.ts, new options parameter is added as a mandatory parameter for function clickUi5ListItemByText but it's not used.

It should be optional as other functions and the default value should be {}.

Pull Request Checklist

@coveralls
Copy link

coveralls commented May 8, 2025

Pull Request Test Coverage Report for Build 14933587679

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.05%) to 88.213%

Files with Coverage Reduction New Missed Lines %
packages/main/src/components/ObjectPage/index.tsx 3 94.62%
Totals Coverage Status
Change from base Build 14931733192: -0.05%
Covered Lines: 5306
Relevant Lines: 6015

💛 - Coveralls

…tional {}

Set the default options to `{force: true}` to mimic the behavior as before
@Jianrong-Yu Jianrong-Yu force-pushed the fix-cypress-commands-clickUi5ListItemByText branch from 6709f44 to 2f284f3 Compare May 8, 2025 20:29
Copy link
Contributor

@Lukas742 Lukas742 left a comment

Choose a reason for hiding this comment

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

Hi @Jianrong-Yu

thanks a lot for your contribution, it's really appreciated!

Adding the options parameter in the type definitions was an oversight. Initially, I planned to remove it again since force: true doesn't work, but we can definitely keep it for the other options. The type just needs to reflect that (please see my comment below).

@Jianrong-Yu Jianrong-Yu requested a review from Lukas742 May 9, 2025 17:08
@Lukas742 Lukas742 merged commit 74ebb19 into SAP:main May 12, 2025
25 checks passed
@ui5-webcomponents-react-bot
Copy link
Contributor

🎉 This PR is included in version v2.11.0-rc.0 🎉

The release is available on v2.11.0-rc.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants