Playwright upgrade and small addition to ChannelsPage helper (#22978)

* partial commit

* upgrade playwright to 1.32.3 (ui + project dependencies support)

* revert empty line

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
José Peso
2023-04-18 04:46:49 +02:00
коммит произвёл GitHub
родитель 61456b6846
Коммит 831ea38f7e
5 изменённых файлов: 50 добавлений и 17 удалений

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

@@ -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();