From a41d4746d4ee94939844b57f9df0610223cea932 Mon Sep 17 00:00:00 2001 From: Sherry Wong Date: Sat, 4 May 2024 15:25:36 +0800 Subject: [PATCH] fix test --- packages/lexical-playground/__tests__/e2e/Mentions.spec.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/lexical-playground/__tests__/e2e/Mentions.spec.mjs b/packages/lexical-playground/__tests__/e2e/Mentions.spec.mjs index 3d0e716644f..df17e847f7c 100644 --- a/packages/lexical-playground/__tests__/e2e/Mentions.spec.mjs +++ b/packages/lexical-playground/__tests__/e2e/Mentions.spec.mjs @@ -6,12 +6,11 @@ * */ -import {$selectAll} from 'lexical'; - import { deleteNextWord, moveLeft, moveToEditorBeginning, + selectAll, } from '../keyboardShortcuts/index.mjs'; import { assertHTML, @@ -952,7 +951,7 @@ test.describe('Mentions', () => { await waitForSelector(page, '.mention'); - $selectAll(); + await selectAll(page); await pasteFromClipboard(page, { 'text/html':