I have a problem with typeText()
These instructions work:
await expect(element(by.id('loginUserName'))).toBeVisible();
await element(by.id('loginUserName')).replaceText('johnSmith');
await expect(element(by.id('login'))).toBeVisible();
await element(by.id('login')).tap();
but these do not:
await expect(element(by.id('loginUserName'))).toBeVisible();
await element(by.id('loginUserName')).typeText('johnSmith');
await expect(element(by.id('login'))).toBeVisible();
await element(by.id('login')).tap();
With typeText, the field is filled, but the keyboard stays visible with the focus still on the field. At this point the detox thread stops until the timeout.
Do I have to do something particular to use typeText?
Edit:
In the second part of my app, I have to use the keyboard in a textarea to trigger an action:
await element(by.id('interopValue')).typeText('something');
await element(by.id('interopValue')).replaceText('origin reference detox');
await expect(element(by.id('interopValue'))).toHaveValue(
'origin reference detox',
);
Just like with the login, the test thread is stopped with the typeText()
Thx