Skip to content

Commit d316fc3

Browse files
committed
test(react, vue): fix input reference
1 parent 9957376 commit d316fc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/test/base/tests/e2e/specs/components/inputs.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Inputs', () => {
5555
});
5656

5757
it('typing into input-otp should update ref', () => {
58-
cy.get('ion-input-otp input').eq(0).type('1234', { scrollBehavior: false });
58+
cy.get('ion-input-otp').shadow().find('input').eq(0).type('1234', { scrollBehavior: false });
5959

6060
cy.get('#input-otp-ref').should('have.text', '1234');
6161
});

packages/vue/test/base/tests/e2e/specs/inputs.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('Inputs', () => {
5353
cy.get('#input-ref').should('have.text', 'Hello Input');
5454
});
5555
it('typing into input-otp should update ref', () => {
56-
cy.get('ion-input-otp input').eq(0).type('1234', { scrollBehavior: false });
56+
cy.get('ion-input-otp').shadow().find('input').eq(0).type('1234', { scrollBehavior: false });
5757

5858
cy.get('#input-otp-ref').should('have.text', '1234');
5959
});

0 commit comments

Comments
 (0)