Update tests

zio/stable
Paul Frazee 2023-09-05 14:03:39 -07:00
parent 411c1581f6
commit 52f3810e81
3 changed files with 8 additions and 4 deletions

View File

@ -25,7 +25,9 @@ describe('Create account', () => {
await element(by.id('handleInput')).typeText('e2e-test') await element(by.id('handleInput')).typeText('e2e-test')
await device.takeScreenshot('4- entered handle') await device.takeScreenshot('4- entered handle')
await element(by.id('nextBtn')).tap() await element(by.id('nextBtn')).tap()
await expect(element(by.id('welcomeScreen'))).toBeVisible() await expect(element(by.id('welcomeOnboarding'))).toBeVisible()
await element(by.id('continueBtn')).tap()
await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible()
await element(by.id('continueBtn')).tap() await element(by.id('continueBtn')).tap()
await expect(element(by.id('homeScreen'))).toBeVisible() await expect(element(by.id('homeScreen'))).toBeVisible()
}) })

View File

@ -42,7 +42,9 @@ describe('invite-codes', () => {
await element(by.id('handleInput')).typeText('e2e-test') await element(by.id('handleInput')).typeText('e2e-test')
await device.takeScreenshot('4- entered handle') await device.takeScreenshot('4- entered handle')
await element(by.id('nextBtn')).tap() await element(by.id('nextBtn')).tap()
await expect(element(by.id('welcomeScreen'))).toBeVisible() await expect(element(by.id('welcomeOnboarding'))).toBeVisible()
await element(by.id('continueBtn')).tap()
await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible()
await element(by.id('continueBtn')).tap() await element(by.id('continueBtn')).tap()
await expect(element(by.id('homeScreen'))).toBeVisible() await expect(element(by.id('homeScreen'))).toBeVisible()
await element(by.id('viewHeaderDrawerBtn')).tap() await element(by.id('viewHeaderDrawerBtn')).tap()

View File

@ -79,7 +79,7 @@ export const RecommendedFeeds = observer(({next}: Props) => {
<> <>
<TabletOrDesktop> <TabletOrDesktop>
<TitleColumnLayout <TitleColumnLayout
testID="recommendedFeedsScreen" testID="recommendedFeedsOnboarding"
title={title} title={title}
horizontal horizontal
titleStyle={isTabletOrMobile ? undefined : {minWidth: 470}} titleStyle={isTabletOrMobile ? undefined : {minWidth: 470}}
@ -93,7 +93,7 @@ export const RecommendedFeeds = observer(({next}: Props) => {
</TitleColumnLayout> </TitleColumnLayout>
</TabletOrDesktop> </TabletOrDesktop>
<Mobile> <Mobile>
<View style={[mStyles.container]} testID="recommendedFeedsScreen"> <View style={[mStyles.container]} testID="recommendedFeedsOnboarding">
<ViewHeader <ViewHeader
title="Recommended Feeds" title="Recommended Feeds"
showBackButton={false} showBackButton={false}