Skip to content

Commit 24409cd

Browse files
feat: reorder buttons on profile (#6681)
1 parent 14b131c commit 24409cd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.maestro/tests/assorted/profile.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ onFlowComplete:
5959
- assertVisible:
6060
id: 'profile-view-email'
6161

62-
# should have new password
63-
- assertVisible:
64-
id: 'profile-view-change-my-password-button'
65-
6662
# should have submit button
6763
- scrollUntilVisible:
6864
element:
@@ -74,6 +70,10 @@ onFlowComplete:
7470
id: 'profile-view-submit'
7571
enabled: false
7672

73+
# should have new password
74+
- assertVisible:
75+
id: 'profile-view-change-my-password-button'
76+
7777
# swipe back to top
7878
- swipe:
7979
from:

app/views/ProfileView/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,6 @@ const ProfileView = ({ navigation }: IProfileViewProps): React.ReactElement => {
380380
customFields={customFields}
381381
onCustomFieldChange={value => setCustomFields(value)}
382382
/>
383-
{Accounts_AllowPasswordChange ? (
384-
<Button
385-
title={I18n.t('Change_my_password')}
386-
type='secondary'
387-
onPress={navigateToChangePasswordView}
388-
testID='profile-view-change-my-password-button'
389-
/>
390-
) : null}
391383
</View>
392384

393385
<Button
@@ -401,6 +393,14 @@ const ProfileView = ({ navigation }: IProfileViewProps): React.ReactElement => {
401393
/>
402394

403395
<ListSeparator style={{ marginVertical: 12 }} />
396+
{Accounts_AllowPasswordChange ? (
397+
<Button
398+
title={I18n.t('Change_my_password')}
399+
type='secondary'
400+
onPress={navigateToChangePasswordView}
401+
testID='profile-view-change-my-password-button'
402+
/>
403+
) : null}
404404
<Button
405405
title={I18n.t('Logout_from_other_logged_in_locations')}
406406
type='secondary'

0 commit comments

Comments
 (0)