diff options
author | Hailey <me@haileyok.com> | 2024-10-28 15:55:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 15:55:17 -0700 |
commit | 3244e1c468559e8643631deaf14bde8390fcf177 (patch) | |
tree | e8171c824b2153a8b038c764ab372b86537d68b7 /src | |
parent | 84db1f997bdf3db7e0038cf221da6756d4a04076 (diff) | |
download | voidsky-3244e1c468559e8643631deaf14bde8390fcf177.tar.zst |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/EditProfileDialog.tsx | 11 | ||||
-rw-r--r-- | src/view/screens/SavedFeeds.tsx | 12 |
2 files changed, 16 insertions, 7 deletions
diff --git a/src/screens/Profile/Header/EditProfileDialog.tsx b/src/screens/Profile/Header/EditProfileDialog.tsx index 3cbae2a60..af4b5498a 100644 --- a/src/screens/Profile/Header/EditProfileDialog.tsx +++ b/src/screens/Profile/Header/EditProfileDialog.tsx @@ -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 && ( diff --git a/src/view/screens/SavedFeeds.tsx b/src/view/screens/SavedFeeds.tsx index e88866f5b..3c04ec36f 100644 --- a/src/view/screens/SavedFeeds.tsx +++ b/src/view/screens/SavedFeeds.tsx @@ -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} |