diff options
Diffstat (limited to '__e2e__/tests/profile-screen.test.ts')
-rw-r--r-- | __e2e__/tests/profile-screen.test.ts | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/__e2e__/tests/profile-screen.test.ts b/__e2e__/tests/profile-screen.test.ts index 6c6d6db9c..da7980094 100644 --- a/__e2e__/tests/profile-screen.test.ts +++ b/__e2e__/tests/profile-screen.test.ts @@ -5,7 +5,7 @@ import {openApp, login, createServer, sleep} from '../util' describe('Profile screen', () => { let service: string beforeAll(async () => { - service = await createServer('?users&posts') + service = await createServer('?users&posts&feeds') await openApp({ permissions: {notifications: 'YES', medialibrary: 'YES', photos: 'YES'}, }) @@ -17,6 +17,12 @@ describe('Profile screen', () => { await element(by.id('bottomBarProfileBtn')).tap() }) + it('Can see feeds', async () => { + await element(by.id('selector-3')).tap() + await expect(element(by.id('feed-alices feed'))).toBeVisible() + await element(by.id('selector-0')).tap() + }) + it('Open and close edit profile modal', async () => { await element(by.id('profileHeaderEditProfileButton')).tap() await expect(element(by.id('editProfileModal'))).toBeVisible() @@ -53,7 +59,7 @@ describe('Profile screen', () => { await expect(element(by.id('profileHeaderDisplayName'))).toHaveText( 'alice.test', ) - await expect(element(by.id('profileHeaderDescription'))).toHaveText('') + await expect(element(by.id('profileHeaderDescription'))).not.toExist() }) it('Set avi and banner via the edit profile modal', async () => { @@ -107,24 +113,24 @@ describe('Profile screen', () => { }) it('Can mute/unmute another user', async () => { - await expect(element(by.id('profileHeaderMutedNotice'))).not.toExist() + await expect(element(by.id('profileHeaderAlert'))).not.toExist() await element(by.id('profileHeaderDropdownBtn')).tap() await element(by.text('Mute Account')).tap() - await expect(element(by.id('profileHeaderMutedNotice'))).toBeVisible() + await expect(element(by.id('profileHeaderAlert'))).toBeVisible() await element(by.id('profileHeaderDropdownBtn')).tap() await element(by.text('Unmute Account')).tap() - await expect(element(by.id('profileHeaderMutedNotice'))).not.toExist() + await expect(element(by.id('profileHeaderAlert'))).not.toExist() }) it('Can report another user', async () => { await element(by.id('profileHeaderDropdownBtn')).tap() await element(by.text('Report Account')).tap() - await expect(element(by.id('reportAccountModal'))).toBeVisible() + await expect(element(by.id('reportModal'))).toBeVisible() await element( - by.id('reportAccountRadios-com.atproto.moderation.defs#reasonSpam'), + by.id('reportReasonRadios-com.atproto.moderation.defs#reasonSpam'), ).tap() await element(by.id('sendReportBtn')).tap() - await expect(element(by.id('reportAccountModal'))).not.toBeVisible() + await expect(element(by.id('reportModal'))).not.toBeVisible() }) it('Can like posts', async () => { @@ -167,11 +173,11 @@ describe('Profile screen', () => { const posts = by.id('feedItem-by-bob.test') await element(by.id('postDropdownBtn').withAncestor(posts)).atIndex(0).tap() await element(by.text('Report post')).tap() - await expect(element(by.id('reportPostModal'))).toBeVisible() + await expect(element(by.id('reportModal'))).toBeVisible() await element( - by.id('reportPostRadios-com.atproto.moderation.defs#reasonSpam'), + by.id('reportReasonRadios-com.atproto.moderation.defs#reasonSpam'), ).tap() await element(by.id('sendReportBtn')).tap() - await expect(element(by.id('reportPostModal'))).not.toBeVisible() + await expect(element(by.id('reportModal'))).not.toBeVisible() }) }) |