Playwright/E2E: Add method to stub notification in Playwright and automate MM-T483 (#29203)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
05abb39019
Коммит
80289a0d8c
@@ -63,6 +63,14 @@ export default class ChannelsPost {
|
||||
await this.removePostButton.waitFor();
|
||||
await this.removePostButton.click();
|
||||
}
|
||||
|
||||
/**
|
||||
* `toContainText` verifies if the post contains the specified text.
|
||||
* @param text Text to be verified in the post
|
||||
*/
|
||||
async toContainText(text: string) {
|
||||
await expect(this.container).toContainText(text);
|
||||
}
|
||||
}
|
||||
|
||||
export {ChannelsPost};
|
||||
|
||||
Ссылка в новой задаче
Block a user