Fix random message
This commit is contained in:
parent
fa95aed4d8
commit
81a4c319a0
|
@ -3,6 +3,7 @@ import { expect } from 'detox';
|
||||||
import data from '../../data';
|
import data from '../../data';
|
||||||
import { navigateToLogin, login, tapBack, searchRoom, platformTypes, TTextMatcher, mockRandomMessage } from '../../helpers/app';
|
import { navigateToLogin, login, tapBack, searchRoom, platformTypes, TTextMatcher, mockRandomMessage } from '../../helpers/app';
|
||||||
import { createRandomUser, ITestUser } from '../../helpers/data_setup';
|
import { createRandomUser, ITestUser } from '../../helpers/data_setup';
|
||||||
|
import random from '../../helpers/random';
|
||||||
|
|
||||||
const room = data.channels.detoxpublic.name;
|
const room = data.channels.detoxpublic.name;
|
||||||
|
|
||||||
|
@ -144,7 +145,7 @@ describe('Join public room', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send message', async () => {
|
it('should send message', async () => {
|
||||||
await mockRandomMessage('message');
|
await mockRandomMessage(`${random()}message`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have notifications and leave channel', async () => {
|
it('should have notifications and leave channel', async () => {
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { expect } from 'detox';
|
||||||
import data from '../../data';
|
import data from '../../data';
|
||||||
import { navigateToLogin, login, searchRoom, mockRandomMessage } from '../../helpers/app';
|
import { navigateToLogin, login, searchRoom, mockRandomMessage } from '../../helpers/app';
|
||||||
import { createRandomUser, ITestUser } from '../../helpers/data_setup';
|
import { createRandomUser, ITestUser } from '../../helpers/data_setup';
|
||||||
|
import random from '../../helpers/random';
|
||||||
|
|
||||||
const room = data.channels.detoxpublicprotected.name;
|
const room = data.channels.detoxpublicprotected.name;
|
||||||
const { joinCode } = data.channels.detoxpublicprotected;
|
const { joinCode } = data.channels.detoxpublicprotected;
|
||||||
|
@ -71,7 +72,7 @@ describe('Join protected room', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send message', async () => {
|
it('should send message', async () => {
|
||||||
await mockRandomMessage('message');
|
await mockRandomMessage(`${random()}message`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue