From c6287038e4ae4143228e25ff13e93184fdfb0909 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 28 Jul 2025 12:02:32 +1000 Subject: [PATCH] DEV: Update smoke test for new composer (#33885) Remove preview checks since now rich composer is the default. We may want to change the smoke test to test both paths (rich and markdown), but for now let's just get it working. --- test/smoke-test.mjs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/test/smoke-test.mjs b/test/smoke-test.mjs index 91c510020dc..ed74ab8f684 100644 --- a/test/smoke-test.mjs +++ b/test/smoke-test.mjs @@ -228,9 +228,9 @@ import puppeteer from "puppeteer-core"; return promise; }); - await exec("updates preview", () => { - return page.waitForSelector(".d-editor-preview p", { visible: true }); - }); + // await exec("updates preview", () => { + // return page.waitForSelector(".d-editor-preview p", { visible: true }); + // }); await exec("submit the topic", () => { return page.click(".submit-panel .create"); @@ -255,14 +255,14 @@ import puppeteer from "puppeteer-core"; return page.type("#reply-control .d-editor-input", post); }); - await exec("waiting for the preview", async () => { - await page.waitForSelector("div.d-editor-preview", { - visible: true, - }); - return page.waitForFunction( - "document.querySelector('div.d-editor-preview').innerText.includes('I can even write a reply')" - ); - }); + // await exec("waiting for the preview", async () => { + // await page.waitForSelector("div.d-editor-preview", { + // visible: true, + // }); + // return page.waitForFunction( + // "document.querySelector('div.d-editor-preview').innerText.includes('I can even write a reply')" + // ); + // }); await exec("wait a little bit", () => { return new Promise((resolve) => setTimeout(resolve, 5000));