Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class ConversationDetailsPage {
readonly blockConversationButton: Locator;
readonly clearConversationContentButton: Locator;
readonly selectedSearchList: Locator;
readonly searchPeopleInput: Locator;
readonly searchList: Locator;
readonly deleteGroupButton: Locator;
readonly notificationsButton: Locator;
Expand All @@ -47,7 +48,8 @@ export class ConversationDetailsPage {
this.blockConversationButton = this.conversationDetails.getByTestId('do-block');
this.clearConversationContentButton = this.conversationDetails.getByRole('button', {name: 'Clear Content'});
this.selectedSearchList = this.page.getByTestId('selected-search-list');
this.searchList = this.page.getByTestId('search-list');
this.searchPeopleInput = page.getByRole('textbox', {name: 'Search by name'});
this.searchList = this.page.locator('#add-participants').getByRole('list');
this.deleteGroupButton = this.page.getByRole('button', {name: 'Delete group'});
this.notificationsButton = this.page.getByRole('button', {name: 'Notifications'});
this.editConversationNameButton = this.page.getByRole('button', {name: 'Change conversation name'});
Expand Down Expand Up @@ -110,7 +112,11 @@ export class ConversationDetailsPage {
await this.getLocatorByUser(fullName).click();
}

getParticipantStatus(fullName: string) {
getUserRoleIcon(fullName: string) {
return this.getLocatorByUser(fullName).getByTestId(/^status-(external|guest|admin)$/);
}

getUserAvailabilityIcon(fullName: string) {
return this.getLocatorByUser(fullName).getByTestId('status-availability-icon');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {User} from 'test/e2e_tests/data/user';
export class ConversationListPage {
readonly page: Page;

readonly list: Locator;
readonly blockConversationMenuButton: Locator;
readonly createGroupButton: Locator;
readonly pendingConnectionRequest: Locator;
Expand All @@ -43,6 +44,7 @@ export class ConversationListPage {
constructor(page: Page) {
this.page = page;

this.list = page.getByRole('list', {name: 'Conversation list'});
this.blockConversationMenuButton = page.getByRole('menu').getByRole('button', {name: 'Block'});
this.pendingConnectionRequest = page.locator('[data-uie-name="connection-request"]');
this.createGroupButton = page.getByTestId('conversation-list-header').getByTestId('go-create-group');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class GroupCreationPage {
readonly page: Page;

readonly groupCreationModal: Locator;
readonly searchPeopleList: Locator;
readonly groupNameInput: Locator;
readonly nextButton: Locator;
readonly createGroupButton: Locator;
Expand All @@ -43,7 +44,8 @@ export class GroupCreationPage {
this.filesCheckbox = page.locator('[data-uie-name="do-toggle-cells"]');

this.searchPeopleInput = page.getByRole('dialog').getByLabel('Search by name');
this.searchPeopleResults = page.getByRole('dialog').getByRole('list').getByRole('listitem');
this.searchPeopleList = page.getByRole('dialog').getByRole('list');
this.searchPeopleResults = this.searchPeopleList.getByRole('listitem');
}

async setGroupName(name: string) {
Expand Down
Loading