From c620931fec7359679e2a0dbb4eeb69f44657fb90 Mon Sep 17 00:00:00 2001 From: Kevin Burton Date: Mon, 9 Sep 2024 11:20:34 -0700 Subject: [PATCH] more README nodes for testing. --- .../scripts/views/components/Editor/README. md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/commonwealth/client/scripts/views/components/Editor/README. md b/packages/commonwealth/client/scripts/views/components/Editor/README. md index 255ee9d7703..57df7f53e58 100644 --- a/packages/commonwealth/client/scripts/views/components/Editor/README. md +++ b/packages/commonwealth/client/scripts/views/components/Editor/README. md @@ -27,15 +27,17 @@ so that we can place the toolbar below the editor. - success: copy a .md file to the clipboard, try to paste it into the editor. It should insert the content at the editor's cursor + - this works via a File object (not text) so it's important to test this path. + - success: drag a .md file on top of the editor. The drag indicator should show - up and cover the editor while you're dragging. + up and cover the editor while you're dragging. Then the file should be inserted + at the cursor. - success: use the 'Import markdown' button to upload a file. -- failure: copy multiple .md files ot the clipboard, try to paste into the editor. - It should fail because we can't handle multiple .md files - -- success: right click on an image in the browser, try to paste it into the editor. +- success: right click and copy an image in the browser, this should upload it +to the editor and insert it at the current point (I use msnbc.com for this as +their images are copyable and not CSS background images) - success: take a screenshot, try to paste it into the editor. The upload indicator should show up. @@ -46,8 +48,14 @@ so that we can place the toolbar below the editor. - success: drop an image file. Should upload it for us and not handle it as markdown. +- failure: copy multiple .md files ot the clipboard, try to paste into the editor. + It should fail because we can't handle multiple .md files + ## Mobile +It's probably best to test this on a REAL mobile browser (not on a desktop). + - The toolbar should be present at the bottom of the UI. +- They keyboard should stay on top of the keyboard.