web: fix editor tests

This commit is contained in:
Abdullah Atta
2025-02-24 11:53:51 +05:00
parent a912a1a22e
commit 8d83f5474d
3 changed files with 3 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ test("when autosave is disabled, creating a new note should save the note", asyn
await notes.newNote();
await note?.openNote();
await expect(notes.editor.savedIcon).toBeVisible();
// await expect(notes.editor.savedIcon).toBeVisible();
expect(await notes.editor.getContent("text")).toBe(content.trim());
});

View File

@@ -1 +1 @@
This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1An edit I made
An edit I madeThis is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1

View File

@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Attachment, Editor } from "@notesnook/editor";
import { Attachment } from "@notesnook/editor";
export const MAX_AUTO_SAVEABLE_WORDS = IS_TESTING ? 100 : 100_000;