Test fixes

zio/stable
Paul Frazee 2023-08-28 19:10:36 -07:00
parent 1c460c40f4
commit 2619c55c10
5 changed files with 9 additions and 4 deletions

View File

@ -114,7 +114,8 @@ describe('Mute lists', () => {
it('Shows the mutelist on my profile', async () => {
await element(by.id('bottomBarProfileBtn')).tap()
await element(by.id('selector-3')).tap()
await element(by.id('selector')).swipe('left')
await element(by.id('selector-4')).tap()
await element(by.id('list-Bad Ppl')).tap()
})
@ -156,6 +157,7 @@ describe('Mute lists', () => {
await element(by.id('bottomBarSearchBtn')).tap()
await element(by.id('searchTextInput')).typeText('alice')
await element(by.id('searchAutoCompleteResult-alice.test')).tap()
await element(by.id('selector')).swipe('left')
await element(by.id('selector-3')).tap()
await element(by.id('list-Bad Ppl')).tap()
await element(by.id('reportListBtn')).tap()

View File

@ -18,8 +18,10 @@ describe('Profile screen', () => {
})
it('Can see feeds', async () => {
await element(by.id('selector-3')).tap()
await element(by.id('selector')).swipe('left')
await element(by.id('selector-4')).tap()
await expect(element(by.id('feed-alices feed'))).toBeVisible()
await element(by.id('selector')).swipe('right')
await element(by.id('selector-0')).tap()
})

View File

@ -20,7 +20,7 @@ describe('Self-labeling', () => {
await element(by.id('composeFAB')).tap()
await element(by.id('composerTextInput')).typeText('Post with an image')
await element(by.id('openGalleryBtn')).tap()
await sleep(1e3)
await sleep(3e3)
await element(by.id('labelsBtn')).tap()
await element(by.id('pornLabelBtn')).tap()
await element(by.id('confirmBtn')).tap()

View File

@ -168,6 +168,7 @@ export function Selector({
backgroundColor: pal.colors.background,
}}>
<ScrollView
testID="selector"
horizontal
showsHorizontalScrollIndicator={false}
style={{position: 'absolute'}}>

View File

@ -74,7 +74,7 @@ export const ProfileListScreen = withAuthRequired(
store.shell.openModal({
name: 'confirm',
title: 'Delete List',
message: 'Are you sure',
message: 'Are you sure?',
async onPressConfirm() {
await list.delete()
if (navigation.canGoBack()) {