Thread reply edit file handling bug fix (#30470)

* Fixed a bug where escape would delete all typed content

* Fixed rootId and postID

* fixed tests

* Type fix

* Fixed a test

* Search result edit fix

* Removed a test change

* threads view isn't RHS

* Fixed a cypress test

* Fixed a cypress test

* Fixed a flaky playwighr test
Этот коммит содержится в:
Harshil Sharma
2025-03-18 16:19:18 +05:30
коммит произвёл GitHub
родитель c1d4f5cb9f
Коммит c951a9cfac
13 изменённых файлов: 78 добавлений и 76 удалений

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

@@ -3,6 +3,7 @@
import {expect, Locator} from '@playwright/test';
import path from 'node:path';
import {waitUntil} from '@e2e-support/test_action';
export default class ChannelsPostCreate {
readonly container: Locator;
@@ -106,6 +107,12 @@ export default class ChannelsPostCreate {
});
await this.attachmentButton.click();
// wait for all files to be uploaded
await waitUntil(async () => {
const attachment = await this.container.locator('.file-preview').count();
return attachment === files.length;
});
}
await this.sendMessage();