The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e/page-objects/directory.ts

22 lines
507 B

import type { Page } from '@playwright/test';
export class Directory {
public readonly page: Page;
constructor(page: Page) {
this.page = page;
}
async searchChannel(name: string) {
await this.page.getByRole('textbox', { name: 'Search' }).fill(name);
}
getSearchByChannelName(name: string) {
return this.page.locator(`role=table >> role=link >> text="${name}"`);
}
async openChannel(name: string) {
await this.searchChannel(name);
await this.getSearchByChannelName(name).click();
}
}