From 81a4c319a03e93a23efbea715efbb2d202c3aac5 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 24 Feb 2023 16:01:26 -0300 Subject: [PATCH] Fix random message --- e2e/tests/assorted/05-joinpublicroom.spec.ts | 3 ++- e2e/tests/assorted/08-joinprotectedroom.spec.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/tests/assorted/05-joinpublicroom.spec.ts b/e2e/tests/assorted/05-joinpublicroom.spec.ts index 4681d86a4..0df17e230 100644 --- a/e2e/tests/assorted/05-joinpublicroom.spec.ts +++ b/e2e/tests/assorted/05-joinpublicroom.spec.ts @@ -3,6 +3,7 @@ import { expect } from 'detox'; import data from '../../data'; import { navigateToLogin, login, tapBack, searchRoom, platformTypes, TTextMatcher, mockRandomMessage } from '../../helpers/app'; import { createRandomUser, ITestUser } from '../../helpers/data_setup'; +import random from '../../helpers/random'; const room = data.channels.detoxpublic.name; @@ -144,7 +145,7 @@ describe('Join public room', () => { }); it('should send message', async () => { - await mockRandomMessage('message'); + await mockRandomMessage(`${random()}message`); }); it('should have notifications and leave channel', async () => { diff --git a/e2e/tests/assorted/08-joinprotectedroom.spec.ts b/e2e/tests/assorted/08-joinprotectedroom.spec.ts index 6b8990ba5..f9c7af0fc 100644 --- a/e2e/tests/assorted/08-joinprotectedroom.spec.ts +++ b/e2e/tests/assorted/08-joinprotectedroom.spec.ts @@ -3,6 +3,7 @@ import { expect } from 'detox'; import data from '../../data'; import { navigateToLogin, login, searchRoom, mockRandomMessage } from '../../helpers/app'; import { createRandomUser, ITestUser } from '../../helpers/data_setup'; +import random from '../../helpers/random'; const room = data.channels.detoxpublicprotected.name; const { joinCode } = data.channels.detoxpublicprotected; @@ -71,7 +72,7 @@ describe('Join protected room', () => { }); it('should send message', async () => { - await mockRandomMessage('message'); + await mockRandomMessage(`${random()}message`); }); }); });