Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion appium/tests/helpers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,13 @@ export async function logoutUser() {
export async function fillInput(testId: string, value: string) {
const input = await byTestId(testId);
await input.waitForDisplayed({ timeout: 5_000 });
// UiAutomator2 has no `value` attribute; native Android exposes input text via getText.
const readsText = getPlatform() === 'android' && !isWebViewSDK;
await driver.waitUntil(
async () => {
await input.setValue(value);
return (await input.getValue()) === value;
const typed = readsText ? await input.getText() : await input.getValue();
return typed === value;
},
{ timeout: 10_000, interval: 500, timeoutMsg: `Input "${testId}" did not keep "${value}"` },
);
Expand Down
Loading