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:
@@ -10,6 +10,8 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "e2eSignInAlice"
|
id: "e2eSignInAlice"
|
||||||
|
|
||||||
# Post an image with the porn label
|
# Post an image with the porn label
|
||||||
|
- assertVisible:
|
||||||
|
id: "composeFAB"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "composeFAB"
|
id: "composeFAB"
|
||||||
- inputText: "Post with an image"
|
- inputText: "Post with an image"
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ appId: xyz.blueskyweb.app
|
|||||||
file: ../setupApp.yml
|
file: ../setupApp.yml
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "e2eSignInAlice"
|
id: "e2eSignInAlice"
|
||||||
|
- assertVisible:
|
||||||
|
id: "composeFAB"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "composeFAB"
|
id: "composeFAB"
|
||||||
- inputText: "Post text only"
|
- inputText: "Post text only"
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ appId: xyz.blueskyweb.app
|
|||||||
- pressKey: Enter
|
- pressKey: Enter
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "nextBtn"
|
id: "nextBtn"
|
||||||
|
- tapOn: "Not now"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "handleInput"
|
id: "handleInput"
|
||||||
- inputText: "e2e-test"
|
- inputText: "e2e-test"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editDescriptionInput"
|
id: "editDescriptionInput"
|
||||||
- inputText: "They good"
|
- inputText: "They good"
|
||||||
- tapOn: "Save"
|
- tapOn: "Save"
|
||||||
- tapOn: "Save"
|
|
||||||
- assertNotVisible:
|
- assertNotVisible:
|
||||||
id: "createOrEditListModal"
|
id: "createOrEditListModal"
|
||||||
- tapOn: "About"
|
- tapOn: "About"
|
||||||
@@ -46,7 +45,6 @@ appId: xyz.blueskyweb.app
|
|||||||
- eraseText
|
- eraseText
|
||||||
- inputText: "They bad"
|
- inputText: "They bad"
|
||||||
- tapOn: "Save"
|
- tapOn: "Save"
|
||||||
- tapOn: "Save"
|
|
||||||
- assertNotVisible:
|
- assertNotVisible:
|
||||||
id: "createOrEditListModal"
|
id: "createOrEditListModal"
|
||||||
- assertVisible: Bad Ppl
|
- assertVisible: Bad Ppl
|
||||||
@@ -62,7 +60,6 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editDescriptionInput"
|
id: "editDescriptionInput"
|
||||||
- eraseText
|
- eraseText
|
||||||
- tapOn: "Save"
|
- tapOn: "Save"
|
||||||
- tapOn: "Save"
|
|
||||||
- assertNotVisible:
|
- assertNotVisible:
|
||||||
id: "createOrEditListModal"
|
id: "createOrEditListModal"
|
||||||
- assertNotVisible:
|
- assertNotVisible:
|
||||||
@@ -90,7 +87,6 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editDescriptionInput"
|
id: "editDescriptionInput"
|
||||||
- inputText: "They good"
|
- inputText: "They good"
|
||||||
- tapOn: "Save"
|
- tapOn: "Save"
|
||||||
- tapOn: "Save"
|
|
||||||
- assertNotVisible:
|
- assertNotVisible:
|
||||||
id: "createOrEditListModal"
|
id: "createOrEditListModal"
|
||||||
- tapOn: "About"
|
- tapOn: "About"
|
||||||
|
|||||||
@@ -40,9 +40,10 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editFeedsBtn"
|
id: "editFeedsBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
label: "Tap on down arrow"
|
label: "Tap on down arrow"
|
||||||
point: "79%,23%"
|
id: "feed-timeline-moveDown"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
label: "Save button"
|
||||||
|
id: "saveChangesBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
id: "viewHeaderDrawerBtn"
|
||||||
- assertVisible:
|
- assertVisible:
|
||||||
@@ -61,9 +62,10 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editFeedsBtn"
|
id: "editFeedsBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
label: "Tap on down arrow"
|
label: "Tap on down arrow"
|
||||||
point: "79%,23%"
|
id: "feed-feed-moveDown"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
label: "Save button"
|
||||||
|
id: "saveChangesBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
id: "viewHeaderDrawerBtn"
|
||||||
- assertVisible:
|
- assertVisible:
|
||||||
@@ -82,9 +84,10 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editFeedsBtn"
|
id: "editFeedsBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
label: "Tap on unpin"
|
label: "Tap on unpin"
|
||||||
point: "91%,23%"
|
id: "feed-timeline-togglePin"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
label: "Save button"
|
||||||
|
id: "saveChangesBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "viewHeaderDrawerBtn"
|
id: "viewHeaderDrawerBtn"
|
||||||
- assertVisible:
|
- assertVisible:
|
||||||
|
|||||||
@@ -23,4 +23,5 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "loginPasswordInput"
|
id: "loginPasswordInput"
|
||||||
- inputText: "hunter2"
|
- inputText: "hunter2"
|
||||||
- pressKey: Enter
|
- pressKey: Enter
|
||||||
|
- tapOn: "Not now"
|
||||||
- assertVisible: "Following"
|
- assertVisible: "Following"
|
||||||
@@ -22,22 +22,23 @@ appId: xyz.blueskyweb.app
|
|||||||
id: "editDescriptionInput"
|
id: "editDescriptionInput"
|
||||||
- inputText: "Shhh"
|
- inputText: "Shhh"
|
||||||
- tapOn: "Save"
|
- tapOn: "Save"
|
||||||
- tapOn: "Save"
|
|
||||||
|
|
||||||
# view modlist
|
# view modlist
|
||||||
- assertVisible: "Muted Users"
|
- assertVisible: "Muted Users"
|
||||||
- assertVisible: "Shhh"
|
- assertVisible: "Shhh"
|
||||||
|
|
||||||
# toggle mute subscription
|
|
||||||
- tapOn:
|
- tapOn:
|
||||||
point: "70%,9%"
|
label: "Dropdown"
|
||||||
|
point: "71%,9%"
|
||||||
|
|
||||||
- tapOn: "Mute accounts"
|
- tapOn: "Mute accounts"
|
||||||
- tapOn: "Mute list"
|
- tapOn: "Mute list"
|
||||||
- tapOn: "Unmute"
|
- tapOn: "Unmute"
|
||||||
|
|
||||||
# toggle block subscription
|
|
||||||
- tapOn:
|
- tapOn:
|
||||||
point: "70%,9%"
|
label: "Dropdown"
|
||||||
|
point: "71%,9%"
|
||||||
|
|
||||||
- tapOn: "Block accounts"
|
- tapOn: "Block accounts"
|
||||||
- tapOn: "Block list"
|
- tapOn: "Block list"
|
||||||
- tapOn: "Unblock"
|
- tapOn: "Unblock"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ appId: xyz.blueskyweb.app
|
|||||||
# Navigate to another user profile via autocomplete
|
# Navigate to another user profile via autocomplete
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "bottomBarSearchBtn"
|
id: "bottomBarSearchBtn"
|
||||||
|
- assertVisible: "Search"
|
||||||
- tapOn: "Search"
|
- tapOn: "Search"
|
||||||
- inputText: "b"
|
- inputText: "b"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ appId: xyz.blueskyweb.app
|
|||||||
file: ../setupApp.yml
|
file: ../setupApp.yml
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "e2eSignInAlice"
|
id: "e2eSignInAlice"
|
||||||
|
- assertVisible:
|
||||||
|
id: "storybookBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "storybookBtn"
|
id: "storybookBtn"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
|
|||||||
@@ -7,10 +7,11 @@ appId: xyz.blueskyweb.app
|
|||||||
- runFlow:
|
- runFlow:
|
||||||
file: ../setupApp.yml
|
file: ../setupApp.yml
|
||||||
|
|
||||||
|
|
||||||
# Login, create a thread, and log out
|
# Login, create a thread, and log out
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "e2eSignInAlice"
|
id: "e2eSignInAlice"
|
||||||
|
- assertVisible:
|
||||||
|
id: "composeFAB"
|
||||||
- tapOn:
|
- tapOn:
|
||||||
id: "composeFAB"
|
id: "composeFAB"
|
||||||
- inputText: "Test thread"
|
- inputText: "Test thread"
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ export function EditProfileDialog({
|
|||||||
nativeOptions={{
|
nativeOptions={{
|
||||||
preventDismiss: dirty,
|
preventDismiss: dirty,
|
||||||
minHeight: SCREEN_HEIGHT,
|
minHeight: SCREEN_HEIGHT,
|
||||||
}}>
|
}}
|
||||||
|
testID="editProfileModal">
|
||||||
<DialogInner
|
<DialogInner
|
||||||
profile={profile}
|
profile={profile}
|
||||||
onUpdate={onUpdate}
|
onUpdate={onUpdate}
|
||||||
@@ -221,7 +222,8 @@ function DialogInner({
|
|||||||
size="small"
|
size="small"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
style={[a.rounded_full]}>
|
style={[a.rounded_full]}
|
||||||
|
testID="editProfileCancelBtn">
|
||||||
<ButtonText style={[a.text_md]}>
|
<ButtonText style={[a.text_md]}>
|
||||||
<Trans>Cancel</Trans>
|
<Trans>Cancel</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
@@ -244,7 +246,8 @@ function DialogInner({
|
|||||||
size="small"
|
size="small"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
style={[a.rounded_full]}>
|
style={[a.rounded_full]}
|
||||||
|
testID="editProfileSaveBtn">
|
||||||
<ButtonText style={[a.text_md, !dirty && t.atoms.text_contrast_low]}>
|
<ButtonText style={[a.text_md, !dirty && t.atoms.text_contrast_low]}>
|
||||||
<Trans>Save</Trans>
|
<Trans>Save</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
@@ -316,6 +319,7 @@ function DialogInner({
|
|||||||
onChangeText={setDisplayName}
|
onChangeText={setDisplayName}
|
||||||
label={_(msg`Display name`)}
|
label={_(msg`Display name`)}
|
||||||
placeholder={_(msg`e.g. Alice Lastname`)}
|
placeholder={_(msg`e.g. Alice Lastname`)}
|
||||||
|
testID="editProfileDisplayNameInput"
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
{displayNameTooLong && (
|
{displayNameTooLong && (
|
||||||
@@ -346,6 +350,7 @@ function DialogInner({
|
|||||||
multiline
|
multiline
|
||||||
label={_(msg`Display name`)}
|
label={_(msg`Display name`)}
|
||||||
placeholder={_(msg`Tell us a bit about yourself`)}
|
placeholder={_(msg`Tell us a bit about yourself`)}
|
||||||
|
testID="editProfileDescriptionInput"
|
||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
{descriptionTooLong && (
|
{descriptionTooLong && (
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ function SavedFeedsInner({
|
|||||||
onPress={onSaveChanges}
|
onPress={onSaveChanges}
|
||||||
label={_(msg`Save changes`)}
|
label={_(msg`Save changes`)}
|
||||||
disabled={isOverwritePending || !hasUnsavedChanges}
|
disabled={isOverwritePending || !hasUnsavedChanges}
|
||||||
style={[isDesktop && a.mt_sm]}>
|
style={[isDesktop && a.mt_sm]}
|
||||||
|
testID="saveChangesBtn">
|
||||||
<ButtonText style={[isDesktop && a.text_md]}>
|
<ButtonText style={[isDesktop && a.text_md]}>
|
||||||
{isDesktop ? <Trans>Save changes</Trans> : <Trans>Save</Trans>}
|
{isDesktop ? <Trans>Save changes</Trans> : <Trans>Save</Trans>}
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
@@ -315,7 +316,8 @@ function ListItem({
|
|||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
marginRight: 8,
|
marginRight: 8,
|
||||||
opacity: state.hovered || state.pressed ? 0.5 : 1,
|
opacity: state.hovered || state.pressed ? 0.5 : 1,
|
||||||
})}>
|
})}
|
||||||
|
testID={`feed-${feed.type}-moveUp`}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
icon="arrow-up"
|
icon="arrow-up"
|
||||||
size={14}
|
size={14}
|
||||||
@@ -333,7 +335,8 @@ function ListItem({
|
|||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
marginRight: 8,
|
marginRight: 8,
|
||||||
opacity: state.hovered || state.pressed ? 0.5 : 1,
|
opacity: state.hovered || state.pressed ? 0.5 : 1,
|
||||||
})}>
|
})}
|
||||||
|
testID={`feed-${feed.type}-moveDown`}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
icon="arrow-down"
|
icon="arrow-down"
|
||||||
size={14}
|
size={14}
|
||||||
@@ -374,7 +377,8 @@ function ListItem({
|
|||||||
paddingVertical: 10,
|
paddingVertical: 10,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
opacity: state.hovered || state.focused ? 0.5 : 1,
|
opacity: state.hovered || state.focused ? 0.5 : 1,
|
||||||
})}>
|
})}
|
||||||
|
testID={`feed-${feed.type}-togglePin`}>
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
icon="thumb-tack"
|
icon="thumb-tack"
|
||||||
size={14}
|
size={14}
|
||||||
|
|||||||
Reference in New Issue
Block a user