Update 04-discussion.spec.js
This commit is contained in:
parent
bd534f5fd4
commit
184799e9cc
|
@ -105,7 +105,7 @@ describe('Discussion', () => {
|
|||
});
|
||||
|
||||
describe('Check RoomActionsView render', () => {
|
||||
it('should navigete to RoomActionsView', async () => {
|
||||
it('should navigate to RoomActionsView', async () => {
|
||||
await waitFor(element(by.id('room-header')))
|
||||
.toBeVisible()
|
||||
.withTimeout(5000);
|
||||
|
@ -202,5 +202,16 @@ describe('Discussion', () => {
|
|||
.toBeVisible()
|
||||
.withTimeout(5000);
|
||||
});
|
||||
|
||||
it('should navigate to discussion', async () => {
|
||||
const discussionName = `${data.random} Discussion NewMessageView`;
|
||||
await waitFor(element(by.label(discussionName)).atIndex(0))
|
||||
.toExist()
|
||||
.withTimeout(5000);
|
||||
await element(by.label(discussionName)).atIndex(0).tap();
|
||||
await waitFor(element(by.id(`room-view-title-${discussionName}`)))
|
||||
.toExist()
|
||||
.withTimeout(5000);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue