[MA-7]: Fixed failing playwright test case

This commit is contained in:
ayush-chauhan233 2025-02-14 19:46:17 +05:30
parent 80252f9cc5
commit 2c67544836
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ export default class MessagePriority {
}
async closePriorityMenu() {
await this.priorityIcon.click();
await this.priorityMenu.press('Escape');
await expect(this.priorityMenu).not.toBeVisible();
}

View File

@ -25,7 +25,8 @@ test('MM-T5139: Message Priority - Standard message priority and system setting'
await messagePriority.verifyStandardOptionSelected();
// # Close menu and post message
await messagePriority.standardPriorityOption.click();
await messagePriority.closePriorityMenu();
const testMessage = 'This is just a test message';
await channelsPage.postMessage(testMessage);