Merge branch 'master' into MM-50966-in-product-expansion

Этот коммит содержится в:
Conor Macpherson
2023-04-18 12:05:00 -04:00
родитель 2f8e9f16e3 067e36c23c
Коммит 3a76a324f6
1605 изменённых файлов: 4690 добавлений и 4167 удалений

Просмотреть файл

@@ -9,6 +9,7 @@ export default class ChannelsPostCreate {
readonly input;
readonly attachmentButton;
readonly emojiButton;
readonly sendButton: Locator;
constructor(container: Locator) {
this.container = container;
@@ -16,12 +17,17 @@ export default class ChannelsPostCreate {
this.input = container.getByTestId('post_textbox');
this.attachmentButton = container.getByLabel('attachment');
this.emojiButton = container.getByLabel('select an emoji');
this.sendButton = container.getByTestId('SendMessageButton');
}
async postMessage(message: string) {
await this.input.fill(message);
}
async sendMessage() {
await this.sendButton.click();
}
async toBeVisible() {
await expect(this.container).toBeVisible();
await expect(this.input).toBeVisible();

Просмотреть файл

@@ -49,6 +49,10 @@ export default class ChannelsPage {
await this.postCreate.postMessage(message);
}
async sendMessage() {
await this.postCreate.sendMessage();
}
async getFirstPost() {
await this.page.getByTestId('postView').first().waitFor();
const post = await this.page.getByTestId('postView').first();