mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1/* eslint-env detox/detox */
2
3import {openApp, loginAsAlice, createServer} from '../util'
4
5describe('Search screen', () => {
6 beforeAll(async () => {
7 await createServer('?users')
8 await openApp({
9 permissions: {notifications: 'YES', medialibrary: 'YES', photos: 'YES'},
10 })
11 })
12
13 it('Login', async () => {
14 await loginAsAlice()
15 })
16
17 it('Navigate to another user profile via autocomplete', async () => {
18 await element(by.id('bottomBarSearchBtn')).tap()
19 await element(by.id('searchTextInput')).typeText('bob')
20 await element(by.id('searchAutoCompleteResult-bob.test')).tap()
21 await expect(element(by.id('profileView'))).toBeVisible()
22 })
23})