diff --git a/e2e/helpers/data_setup.ts b/e2e/helpers/data_setup.ts index b03fa443c..61f64003d 100644 --- a/e2e/helpers/data_setup.ts +++ b/e2e/helpers/data_setup.ts @@ -17,7 +17,7 @@ const rocketchat = axios.create({ } }); -const login = async (username: string, password: string) => { +export const login = async (username: string, password: string) => { console.log(`Logging in as user ${username}`); const response = await rocketchat.post('login', { user: username, diff --git a/e2e/tests/assorted/11-deeplinking.spec.ts b/e2e/tests/assorted/11-deeplinking.spec.ts index b75034da3..89b611888 100644 --- a/e2e/tests/assorted/11-deeplinking.spec.ts +++ b/e2e/tests/assorted/11-deeplinking.spec.ts @@ -9,7 +9,7 @@ import { TTextMatcher, expectValidRegisterOrRetry } from '../../helpers/app'; -import { createRandomRoom, createRandomUser, get, login, sendMessage } from '../../helpers/data_setup'; +import { createRandomRoom, createRandomUser, login, sendMessage } from '../../helpers/data_setup'; import random from '../../helpers/random'; const DEEPLINK_METHODS = { AUTH: 'auth', ROOM: 'room' };