Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: fix note creation automation

thecodrr2f20ac0120e4
diff --git a/apps/web/__e2e__/utils/index.js b/apps/web/__e2e__/utils/index.js
index 7b38a08c8..aa5f0c386 100644
--- a/apps/web/__e2e__/utils/index.js
+++ b/apps/web/__e2e__/utils/index.js
@@ -18,19 +18,11 @@ function getTestId(id) {
async function createNote(note, actionButtonId) {
await page.click(getTestId(actionButtonId + "-action-button"));
- await page.waitForSelector(".tox-edit-area__iframe");
+ await page.waitForSelector(".mce-content-body");
await page.fill(getTestId("editor-title"), note.title);
- const frameElement = await page.$("iframe.tox-edit-area__iframe");
-
- const frame = await frameElement.contentFrame();
-
- await frame.click("html");
-
- await frame.type("html", note.content);
-
- await frame.type("body", note.content);
+ await page.type(".mce-content-body", note.content);
}
module.exports = {