Fix random message

This commit is contained in:
Diego Mello 2023-02-24 16:01:26 -03:00
parent fa95aed4d8
commit 81a4c319a0
2 changed files with 4 additions and 2 deletions

View File

@ -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 () => {

View File

@ -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`);
});
});
});