Skip to content

Commit bd9bfcf

Browse files
committed
Updated the typeInputWithIndex method.
1 parent d700ba2 commit bd9bfcf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui-tests/cypress/support/commands.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Cypress.Commands.add("typeInput", (element, tag) => {
77
cy.getElement(element).clear().type(tag);
88
});
99

10-
Cypress.Commands.add("typeInputWithIndex", (element, tag, options = {}) => {
11-
const { index = 0, force = false } = options;
12-
10+
Cypress.Commands.add("typeInputWithIndex", (element, tag, { index = 0, force = false } = {}) => {
1311
cy.getElement(element)
1412
.eq(index)
1513
.clear({ force })

0 commit comments

Comments
 (0)