Skip to content

Commit

Permalink
Handle focus of mesage composer on E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Dec 20, 2022
1 parent 2670467 commit 4ad302b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/thread-actions.spec.ts
Expand Up @@ -80,7 +80,7 @@ test.describe.serial('message-actions', () => {
await expect(page).toHaveURL(/.*thread/);

await expect(page.locator('//main//aside >> [data-qa-type="message"]')).toBeVisible();
await page.locator('[name="msg"]').last().focus();
await expect(page.locator('[name="msg"]').last()).toBeFocused();
await page.keyboard.press('Escape');

await expect(page).not.toHaveURL(/.*thread/);
Expand Down

0 comments on commit 4ad302b

Please sign in to comment.