Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixes to tests (#1518)

authored by

Paul Frazee and committed by
GitHub
150fe421 41b53ca3

+24 -8
+2
__e2e__/tests/create-account.test.ts
··· 29 29 await element(by.id('continueBtn')).tap() 30 30 await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible() 31 31 await element(by.id('continueBtn')).tap() 32 + await expect(element(by.id('recommendedFollowsOnboarding'))).toBeVisible() 33 + await element(by.id('continueBtn')).tap() 32 34 await expect(element(by.id('homeScreen'))).toBeVisible() 33 35 }) 34 36 })
+9 -7
__e2e__/tests/invite-codes.test-skip.ts __e2e__/tests/invite-codes.test.ts
··· 18 18 it('I can fetch invite codes', async () => { 19 19 await expect(element(by.id('signInButton'))).toBeVisible() 20 20 await loginAsAlice() 21 - await element(by.id('viewHeaderDrawerBtn')).tap() 22 - await expect(element(by.id('drawer'))).toBeVisible() 23 - await element(by.id('menuItemInviteCodes')).tap() 21 + await element(by.id('e2eOpenInviteCodesModal')).tap() 24 22 await expect(element(by.id('inviteCodesModal'))).toBeVisible() 25 23 const attrs = await element(by.id('inviteCode-0-code')).getAttributes() 26 24 inviteCode = attrs.text 27 25 await element(by.id('closeBtn')).tap() 28 - await element(by.id('viewHeaderDrawerBtn')).tap() 29 - await element(by.id('menuItemButton-Settings')).tap() 30 - await element(by.id('signOutBtn')).tap() 26 + await element(by.id('e2eSignOut')).tap() 31 27 }) 32 28 33 29 it('I can create a new account with the invite code', async () => { ··· 51 47 await element(by.id('continueBtn')).tap() 52 48 await expect(element(by.id('recommendedFeedsOnboarding'))).toBeVisible() 53 49 await element(by.id('continueBtn')).tap() 50 + await expect(element(by.id('recommendedFollowsOnboarding'))).toBeVisible() 51 + await element(by.id('continueBtn')).tap() 54 52 await expect(element(by.id('homeScreen'))).toBeVisible() 55 53 }) 56 54 57 55 it('I get a notification for the new user', async () => { 56 + await element(by.id('e2eSignOut')).tap() 58 57 await loginAsAlice() 59 - await element(by.id('menuItemButton-Notifications')).tap() 58 + await waitFor(element(by.id('homeScreen'))) 59 + .toBeVisible() 60 + .withTimeout(5000) 61 + await element(by.id('bottomBarNotificationsBtn')).tap() 60 62 await expect(element(by.id('invitedUser'))).toBeVisible() 61 63 }) 62 64
+1 -1
__e2e__/tests/profile-screen.test.ts
··· 19 19 it('Can see feeds', async () => { 20 20 await element(by.id('selector')).swipe('left') 21 21 await element(by.id('selector-4')).tap() 22 - await expect(element(by.id('feed-alices feed'))).toBeVisible() 22 + await expect(element(by.id('feed-alice-favs'))).toBeVisible() 23 23 await element(by.id('selector')).swipe('right') 24 24 await element(by.id('selector-0')).tap() 25 25 })
+12
src/view/com/testing/TestCtrls.e2e.tsx
··· 42 42 style={BTN} 43 43 /> 44 44 <Pressable 45 + testID="e2eSignOut" 46 + onPress={() => store.session.logout()} 47 + accessibilityRole="button" 48 + style={BTN} 49 + /> 50 + <Pressable 45 51 testID="e2eGotoHome" 46 52 onPress={() => navigate('Home')} 47 53 accessibilityRole="button" ··· 68 74 <Pressable 69 75 testID="e2eRefreshHome" 70 76 onPress={() => store.me.mainFeed.refresh()} 77 + accessibilityRole="button" 78 + style={BTN} 79 + /> 80 + <Pressable 81 + testID="e2eOpenInviteCodesModal" 82 + onPress={() => store.shell.openModal({name: 'invite-codes'})} 71 83 accessibilityRole="button" 72 84 style={BTN} 73 85 />