e2e/profile.jsView |
---|
88 | 88 | t.pass('I tap it'); |
89 | 89 | await editDescription.sendKeys('teacher'); |
90 | 90 | t.pass('I type "teacher" into it'); |
91 | 91 | |
| 92 | + |
| 93 | + const editAvatar = await driver.elementByAndroidUIAutomator( |
| 94 | + 'new UiSelector().descriptionContains("Profile Picture")', |
| 95 | + ); |
| 96 | + t.ok(editAvatar, 'I see the Profile Picture'); |
| 97 | + await editAvatar.tap(); |
| 98 | + t.pass('I tap it'); |
| 99 | + await driver.sleep(1000); |
| 100 | + t.ok( |
| 101 | + await driver.elementByAndroidUIAutomator( |
| 102 | + 'new UiSelector().text("Recent")', |
| 103 | + ), |
| 104 | + 'I see the Android Picture Gallery', |
| 105 | + ); |
| 106 | + await driver.back(); |
| 107 | + t.pass('I press the (hardware) back button'); |
| 108 | + |
92 | 109 | |
93 | 110 | const saveProfileButton = await driver.elementByAndroidUIAutomator( |
94 | 111 | 'new UiSelector().descriptionContains("Save Profile Button")', |
95 | 112 | ); |