From 38795ba6746673cac5350d194253b9d84a7e9aef Mon Sep 17 00:00:00 2001 From: Shane Friedman Date: Sat, 12 Oct 2024 11:51:34 -0400 Subject: [PATCH] Await inspect --- .../__tests__/ProseMirror.draw-decoration.test.tsx | 8 ++++++-- wdio.conf.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/__tests__/ProseMirror.draw-decoration.test.tsx b/src/components/__tests__/ProseMirror.draw-decoration.test.tsx index a6aad55..263e073 100644 --- a/src/components/__tests__/ProseMirror.draw-decoration.test.tsx +++ b/src/components/__tests__/ProseMirror.draw-decoration.test.tsx @@ -95,9 +95,13 @@ describe("Decoration drawing", () => { doc: doc(p("foobar")), plugins: [decoPlugin(["2-5-foo"])], }); + console.log("SMOORESLOG: created view"); const found = view.dom.querySelector(".foo")!; - expect(found).not.toBeNull(); - expect(found.textContent).toBe("oob"); + console.log("SMOORESLOG: found .foo"); + await expect(found).not.toBeNull(); + console.log("SMOORESLOG: found is not false"); + await expect(found.textContent).toBe("oob"); + console.log("SMOORESLOG: found has correct content"); }); it("draws wrapping decorations", async () => { diff --git a/wdio.conf.ts b/wdio.conf.ts index bb463f3..73bc79f 100644 --- a/wdio.conf.ts +++ b/wdio.conf.ts @@ -72,7 +72,7 @@ export const config: WebdriverIO.Config = { // Define all options that are relevant for the WebdriverIO instance here // // Level of logging verbosity: trace | debug | info | warn | error | silent - logLevel: "warn", + logLevel: "info", // // Set specific log levels per logger // loggers: