More e2e test fixes (#5982)

* fix feed reorder test

* fix feed reorder test pt 2

* fix edit profile test

* fix mod list test

* fix fab

* add assert

* one more assertVisible

* fix search test

* tap now now if it shows up
This commit is contained in:
Hailey
2024-10-28 15:55:17 -07:00
committed by GitHub
parent 84db1f997b
commit 3244e1c468
12 changed files with 50 additions and 31 deletions
@@ -67,7 +67,8 @@ export function EditProfileDialog({
nativeOptions={{
preventDismiss: dirty,
minHeight: SCREEN_HEIGHT,
}}>
}}
testID="editProfileModal">
<DialogInner
profile={profile}
onUpdate={onUpdate}
@@ -221,7 +222,8 @@ function DialogInner({
size="small"
color="primary"
variant="ghost"
style={[a.rounded_full]}>
style={[a.rounded_full]}
testID="editProfileCancelBtn">
<ButtonText style={[a.text_md]}>
<Trans>Cancel</Trans>
</ButtonText>
@@ -244,7 +246,8 @@ function DialogInner({
size="small"
color="primary"
variant="ghost"
style={[a.rounded_full]}>
style={[a.rounded_full]}
testID="editProfileSaveBtn">
<ButtonText style={[a.text_md, !dirty && t.atoms.text_contrast_low]}>
<Trans>Save</Trans>
</ButtonText>
@@ -316,6 +319,7 @@ function DialogInner({
onChangeText={setDisplayName}
label={_(msg`Display name`)}
placeholder={_(msg`e.g. Alice Lastname`)}
testID="editProfileDisplayNameInput"
/>
</TextField.Root>
{displayNameTooLong && (
@@ -346,6 +350,7 @@ function DialogInner({
multiline
label={_(msg`Display name`)}
placeholder={_(msg`Tell us a bit about yourself`)}
testID="editProfileDescriptionInput"
/>
</TextField.Root>
{descriptionTooLong && (
+8 -4
View File
@@ -97,7 +97,8 @@ function SavedFeedsInner({
onPress={onSaveChanges}
label={_(msg`Save changes`)}
disabled={isOverwritePending || !hasUnsavedChanges}
style={[isDesktop && a.mt_sm]}>
style={[isDesktop && a.mt_sm]}
testID="saveChangesBtn">
<ButtonText style={[isDesktop && a.text_md]}>
{isDesktop ? <Trans>Save changes</Trans> : <Trans>Save</Trans>}
</ButtonText>
@@ -315,7 +316,8 @@ function ListItem({
borderRadius: 4,
marginRight: 8,
opacity: state.hovered || state.pressed ? 0.5 : 1,
})}>
})}
testID={`feed-${feed.type}-moveUp`}>
<FontAwesomeIcon
icon="arrow-up"
size={14}
@@ -333,7 +335,8 @@ function ListItem({
borderRadius: 4,
marginRight: 8,
opacity: state.hovered || state.pressed ? 0.5 : 1,
})}>
})}
testID={`feed-${feed.type}-moveDown`}>
<FontAwesomeIcon
icon="arrow-down"
size={14}
@@ -374,7 +377,8 @@ function ListItem({
paddingVertical: 10,
borderRadius: 4,
opacity: state.hovered || state.focused ? 0.5 : 1,
})}>
})}
testID={`feed-${feed.type}-togglePin`}>
<FontAwesomeIcon
icon="thumb-tack"
size={14}