Fix some tests
This commit is contained in:
parent
185d65aafc
commit
feeec793eb
|
@ -69,7 +69,7 @@ describe('Room', () => {
|
|||
await waitForLoading();
|
||||
await waitFor(element(by[textMatcher]('1')).atIndex(0))
|
||||
.toExist()
|
||||
.withTimeout(10000);
|
||||
.withTimeout(30000);
|
||||
await expect(element(by[textMatcher]('2'))).toExist();
|
||||
});
|
||||
|
||||
|
@ -97,7 +97,7 @@ describe('Room', () => {
|
|||
.withTimeout(5000);
|
||||
await waitFor(element(by[textMatcher]('300')))
|
||||
.toExist()
|
||||
.withTimeout(5000);
|
||||
.withTimeout(30000);
|
||||
let found = false;
|
||||
while (!found) {
|
||||
try {
|
||||
|
|
|
@ -288,35 +288,35 @@ describe('Team', () => {
|
|||
it('should add users to the team', async () => {
|
||||
await element(by.id('room-actions-members')).tap();
|
||||
await waitFor(element(by.id('room-members-view')))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(2000);
|
||||
|
||||
await waitFor(element(by.id('room-actions-add-user')))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(10000);
|
||||
await element(by.id('room-actions-add-user')).tap();
|
||||
|
||||
const rocketCat = 'rocket.cat';
|
||||
await element(by.id('select-users-view-search')).replaceText('rocket.cat');
|
||||
await waitFor(element(by.id(`select-users-view-item-${rocketCat}`)))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(10000);
|
||||
await element(by.id(`select-users-view-item-${rocketCat}`)).tap();
|
||||
await waitFor(element(by.id(`selected-user-${rocketCat}`)))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(5000);
|
||||
|
||||
await waitFor(element(by.id('select-users-view-search')))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(4000);
|
||||
await element(by.id('select-users-view-search')).tap();
|
||||
await element(by.id('select-users-view-search')).replaceText(otherUser.username);
|
||||
await waitFor(element(by.id(`select-users-view-item-${otherUser.username}`)))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(10000);
|
||||
await element(by.id(`select-users-view-item-${otherUser.username}`)).tap();
|
||||
await waitFor(element(by.id(`selected-user-${otherUser.username}`)))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(5000);
|
||||
|
||||
await element(by.id('selected-users-view-submit')).tap();
|
||||
|
@ -324,16 +324,16 @@ describe('Team', () => {
|
|||
await tapBack();
|
||||
await sleep(300);
|
||||
await waitFor(element(by.id('room-actions-members')))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(10000);
|
||||
await element(by.id('room-actions-members')).tap();
|
||||
await element(by.id('room-members-view-filter')).tap();
|
||||
await waitFor(element(by.id('room-members-view-toggle-status-all')))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(2000);
|
||||
await element(by.id('room-members-view-toggle-status-all')).tap();
|
||||
await waitFor(element(by.id(`room-members-view-item-${otherUser.username}`)))
|
||||
.toExist()
|
||||
.toBeVisible()
|
||||
.withTimeout(60000);
|
||||
await backToActions();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue