Skip to content

Commit 45ed3f8

Browse files
Selecting by ID through attribute syntax
1 parent 4f34385 commit 45ed3f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/support/commands/element_selectors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Cypress.Commands.add(
4444
cy.logAndThrowError('inputId is required');
4545
}
4646
return cy.get(
47-
`#main-content .bx--form input#${inputId}][type="${inputType}"]`
47+
`#main-content .bx--form input[id="${inputId}"][type="${inputType}"]`
4848
);
4949
}
5050
);
@@ -82,5 +82,5 @@ Cypress.Commands.add('getFormSelectFieldById', ({ selectId }) => {
8282
if (!selectId) {
8383
cy.logAndThrowError('selectId is required');
8484
}
85-
return cy.get(`#main-content .bx--form select#${selectId}]`);
85+
return cy.get(`#main-content .bx--form select[id="${selectId}"]`);
8686
});

0 commit comments

Comments
 (0)