Add Lightbox integration test

This commit is contained in:
Jamie Kyle 2024-09-09 15:43:59 -07:00 committed by GitHub
parent 4f9d383180
commit bdbc63ccf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 343 additions and 85 deletions

View file

@ -16,7 +16,7 @@ import { drop } from '../../util/drop';
import { strictAssert } from '../../util/assert';
import { generateAci } from '../../types/ServiceId';
import { IMAGE_GIF } from '../../types/MIME';
import { typeIntoInput } from '../helpers';
import { typeIntoInput, waitForEnabledComposer } from '../helpers';
import type { MessageAttributesType } from '../../model-types';
import { sleep } from '../../util/sleep';
@ -105,7 +105,7 @@ describe('editing', function (this: Mocha.Suite) {
.locator('.module-message__buttons__menu')
.click();
await page.getByRole('menuitem', { name: 'Edit' }).click();
const input = await app.waitForEnabledComposer();
const input = await waitForEnabledComposer(page);
await typeIntoInput(input, additionalText);
await input.press('Enter');
}
@ -321,7 +321,7 @@ describe('editing', function (this: Mocha.Suite) {
debug('finding composition input and clicking it');
{
const input = await app.waitForEnabledComposer();
const input = await waitForEnabledComposer(window);
debug('entering original message text');
await typeIntoInput(input, 'edit message 1');
@ -542,7 +542,7 @@ describe('editing', function (this: Mocha.Suite) {
const originalText = '1';
debug('finding composition input and clicking it');
{
const input = await app.waitForEnabledComposer();
const input = await waitForEnabledComposer(page);
debug('sending message desktop -> friend');
await typeIntoInput(input, originalText);