Attachment mock test: wait for draft attachment ready before send

This commit is contained in:
Scott Nonnenberg 2024-08-08 22:44:19 +10:00 committed by GitHub
parent 7a9e51f5ad
commit 068dfbc327
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -65,6 +65,9 @@ describe('attachments', function (this: Mocha.Suite) {
.setInputFiles(
path.join(__dirname, '..', '..', '..', 'fixtures', 'cat-screenshot.png')
);
await page
.locator('.module-image.module-staged-attachment .module-image__image')
.waitFor();
const input = await app.waitForEnabledComposer();
await typeIntoInput(input, 'This is my cat');
await input.press('Enter');