Test fixes
This commit is contained in:
parent
1c460c40f4
commit
2619c55c10
5 changed files with 9 additions and 4 deletions
|
@ -114,7 +114,8 @@ describe('Mute lists', () => {
|
||||||
|
|
||||||
it('Shows the mutelist on my profile', async () => {
|
it('Shows the mutelist on my profile', async () => {
|
||||||
await element(by.id('bottomBarProfileBtn')).tap()
|
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()
|
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('bottomBarSearchBtn')).tap()
|
||||||
await element(by.id('searchTextInput')).typeText('alice')
|
await element(by.id('searchTextInput')).typeText('alice')
|
||||||
await element(by.id('searchAutoCompleteResult-alice.test')).tap()
|
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('selector-3')).tap()
|
||||||
await element(by.id('list-Bad Ppl')).tap()
|
await element(by.id('list-Bad Ppl')).tap()
|
||||||
await element(by.id('reportListBtn')).tap()
|
await element(by.id('reportListBtn')).tap()
|
||||||
|
|
|
@ -18,8 +18,10 @@ describe('Profile screen', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Can see feeds', async () => {
|
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 expect(element(by.id('feed-alices feed'))).toBeVisible()
|
||||||
|
await element(by.id('selector')).swipe('right')
|
||||||
await element(by.id('selector-0')).tap()
|
await element(by.id('selector-0')).tap()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ describe('Self-labeling', () => {
|
||||||
await element(by.id('composeFAB')).tap()
|
await element(by.id('composeFAB')).tap()
|
||||||
await element(by.id('composerTextInput')).typeText('Post with an image')
|
await element(by.id('composerTextInput')).typeText('Post with an image')
|
||||||
await element(by.id('openGalleryBtn')).tap()
|
await element(by.id('openGalleryBtn')).tap()
|
||||||
await sleep(1e3)
|
await sleep(3e3)
|
||||||
await element(by.id('labelsBtn')).tap()
|
await element(by.id('labelsBtn')).tap()
|
||||||
await element(by.id('pornLabelBtn')).tap()
|
await element(by.id('pornLabelBtn')).tap()
|
||||||
await element(by.id('confirmBtn')).tap()
|
await element(by.id('confirmBtn')).tap()
|
||||||
|
|
|
@ -168,6 +168,7 @@ export function Selector({
|
||||||
backgroundColor: pal.colors.background,
|
backgroundColor: pal.colors.background,
|
||||||
}}>
|
}}>
|
||||||
<ScrollView
|
<ScrollView
|
||||||
|
testID="selector"
|
||||||
horizontal
|
horizontal
|
||||||
showsHorizontalScrollIndicator={false}
|
showsHorizontalScrollIndicator={false}
|
||||||
style={{position: 'absolute'}}>
|
style={{position: 'absolute'}}>
|
||||||
|
|
|
@ -74,7 +74,7 @@ export const ProfileListScreen = withAuthRequired(
|
||||||
store.shell.openModal({
|
store.shell.openModal({
|
||||||
name: 'confirm',
|
name: 'confirm',
|
||||||
title: 'Delete List',
|
title: 'Delete List',
|
||||||
message: 'Are you sure',
|
message: 'Are you sure?',
|
||||||
async onPressConfirm() {
|
async onPressConfirm() {
|
||||||
await list.delete()
|
await list.delete()
|
||||||
if (navigation.canGoBack()) {
|
if (navigation.canGoBack()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue