반응이있는 기본 응용 프로그램에서 detox를 사용하여 양식을 테스트하려고합니다.Detox : 여러 줄 TextInput을 테스트하는 방법
양식의 입력 중 하나는 multiline={true}
입니다.
const inputElement = element(by.id('input_multiline'));
await expect(inputElement).toBeVisible();
await inputElement.typeText('line1\n');
await inputElement.typeText('line2\n');
await inputElement.typeText('line3\n');
const submitElement = element(by.id('submit'));
await submitElement.toBeVisible();
await submitElement.tap();
이 테스트는 75 % 가시성 기준을 통과하지 못한, 키보드가 버튼을 제출 숨어 있기 때문이다.
일반적으로 multiline={false}
인 TextInput의 경우 입력 문자열에 자동으로 다음 단계로 이동하지만, 여러 줄 입력 \n
은 새 줄을 추가하기 만하면됩니다.
해독에서이 검사를 통과하려면 어떻게해야합니까?