Fix to feeds view in profiles (#1171)
* Fix load of feeds tab * Add e2e test for profile feeds
This commit is contained in:
parent
a3af2a2b85
commit
f4891a47a1
5 changed files with 46 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue