Fix account e2e for android

This commit is contained in:
Joseph Baylon
2023-02-02 15:02:08 -08:00
committed by Elisabeth Kulzer
parent 21ae37353e
commit e8ad89861d
2 changed files with 3 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ describe('Account - Custom Status', () => {
if (isIos()) {
await expect(CustomStatusScreen.statusInput).toHaveValue(defaultStatusText);
} else {
await expect(CustomStatusScreen.statusInput).toHaveText(defaultStatusText);
await expect(CustomStatusScreen.statusInput).toHaveText('');
}
// # Go back to account screen

View File

@@ -82,11 +82,11 @@ describe('Account - Edit Profile', () => {
await EditProfileScreen.firstNameInput.replaceText(`${testUser.first_name}${suffix}`);
await EditProfileScreen.lastNameInput.replaceText(`${testUser.last_name}${suffix}`);
await EditProfileScreen.scrollView.tap({x: 1, y: 1});
await EditProfileScreen.scrollView.scroll(100, 'down');
await waitFor(EditProfileScreen.usernameInput).toBeVisible().whileElement(by.id(EditProfileScreen.testID.scrollView)).scroll(50, 'down');
await EditProfileScreen.usernameInput.clearText();
await EditProfileScreen.usernameInput.typeText(`${testUser.username}${suffix}`);
await EditProfileScreen.scrollView.tap({x: 1, y: 1});
await EditProfileScreen.scrollView.scroll(100, 'down');
await waitFor(EditProfileScreen.nicknameInput).toBeVisible().whileElement(by.id(EditProfileScreen.testID.scrollView)).scroll(50, 'down');
await EditProfileScreen.nicknameInput.replaceText(`${testUser.nickname}${suffix}`);
await EditProfileScreen.scrollView.tap({x: 1, y: 1});
await EditProfileScreen.positionInput.replaceText(`${testUser.position}${suffix}`);