Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alun Turner committed Jun 16, 2023
1 parent 30b4352 commit 88a2540
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ describe("WysiwygComposer", () => {
const mockCompletions: ICompletion[] = [
{
type: "user",
href: "www.user1.com",
href: "https://matrix.to/#/@user_1:element.io",
completion: "user_1",
completionId: "@user_1:host.local",
range: { start: 1, end: 1 },
component: <div>user_1</div>,
},
{
type: "user",
href: "www.user2.com",
href: "https://matrix.to/#/@user_2:element.io",
completion: "user_2",
completionId: "@user_2:host.local",
range: { start: 1, end: 1 },
Expand All @@ -189,15 +189,15 @@ describe("WysiwygComposer", () => {
},
{
type: "room",
href: "www.room1.com",
href: "https://matrix.to/#/#room_1:element.io",
completion: "#room_with_completion_id",
completionId: "@room_1:host.local",
range: { start: 1, end: 1 },
component: <div>room_with_completion_id</div>,
},
{
type: "room",
href: "www.room2.com",
href: "https://matrix.to/#/#room_2:element.io",
completion: "#room_without_completion_id",
range: { start: 1, end: 1 },
component: <div>room_without_completion_id</div>,
Expand Down Expand Up @@ -285,9 +285,9 @@ describe("WysiwygComposer", () => {

it("pressing enter selects the mention and inserts it into the composer as a link", async () => {
await insertMentionInput();

// press enter
await userEvent.keyboard("{Enter}");
screen.debug();

// check that it closes the autocomplete
await waitFor(() => {
Expand Down

0 comments on commit 88a2540

Please sign in to comment.