Skip to content

Commit

Permalink
e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Jul 17, 2024
1 parent be26843 commit 7695b7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/DirectoryView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DirectoryView extends React.Component<IDirectoryViewProps, IDirectoryViewS
title: I18n.t('Directory'),
headerRight: () => (
<HeaderButton.Container>
<HeaderButton.Item iconName='filter' onPress={this.showFilters} />
<HeaderButton.Item iconName='filter' onPress={this.showFilters} testID='directory-view-filter' />
</HeaderButton.Container>
)
};
Expand Down
5 changes: 4 additions & 1 deletion e2e/tests/assorted/07-changeserver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ describe('Change server', () => {
await deleteCreatedUsers(deleteUsersAfterAll);
});

it('should open the dropdown button, have the server add button and create workspace button', async () => {
it('should open the servers list, have the server add button and create workspace button', async () => {
await waitFor(element(by.id('rooms-list-header-servers-list-button')))
.toBeVisible()
.withTimeout(2000);
await element(by.id('rooms-list-header-servers-list-button')).tap();
await waitFor(element(by.id('rooms-list-header-servers-list')))
.toBeVisible()
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/assorted/09-joinfromdirectory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('Join room from directory', () => {
await waitFor(element(by.id('directory-view')))
.toExist()
.withTimeout(2000);
await element(by.id('directory-view-dropdown')).tap();
await element(by.id('directory-view-filter')).tap();
await element(by.label('Users')).atIndex(0).tap();
await navigateToRoom(otherUser.username);
});
Expand All @@ -85,7 +85,7 @@ describe('Join room from directory', () => {
await waitFor(element(by.id('directory-view')))
.toExist()
.withTimeout(2000);
await element(by.id('directory-view-dropdown')).tap();
await element(by.id('directory-view-filter')).tap();
await element(by.label('Teams')).atIndex(0).tap();
await navigateToRoom(team);
});
Expand Down

0 comments on commit 7695b7c

Please sign in to comment.