Skip to content

Commit ba7dc33

Browse files
authored
fix(cypress-commands): default options for clickUi5ListItem to { force: true }
Set the default options to `{force: true}` to mimic the behavior as before
1 parent 329ec3f commit ba7dc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cypress-commands/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Cypress.Commands.add('closeUi5PopupWithEsc', () => {
194194
cy.get('body').type('{esc}', { force: true });
195195
});
196196

197-
Cypress.Commands.add('clickUi5ListItemByText', { prevSubject: 'optional' }, (subject, text, options = {}) => {
197+
Cypress.Commands.add('clickUi5ListItemByText', { prevSubject: 'optional' }, (subject, text, options = { force: true }) => {
198198
cy.document().then((doc) => {
199199
const _subject = (subject as Cypress.JQueryWithSelector<UI5Element>)?.[0] || doc;
200200
const li = _subject.querySelector(`[text="${text}"]`);

0 commit comments

Comments
 (0)