Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47736

Atto reports about restoring blank content

XMLWordPrintable

    • MOODLE_28_STABLE
    • MOODLE_28_STABLE
    • MDL-47736_master
    • Hide

      Test on all supported browsers (sorry)

      1. Go to the atto settings and set the autosave feature to 5 seconds.
      2. Go to 'My profile' -> 'Blogs' -> 'Add a new entry'.
      3. Write something in the 'Blog entry body' field on multiple lines, then clear the text and wait for 'Draft saved' to appear at the bottom of the editor.
      4. Leave the page.
      5. Go back to the page.
      6. Wait a bit and ensure you do not get the message 'A draft version of this text was automatically restored' at the bottom of the editor.
      7. Write something into the field and wait for it to be saved.
      8. Leave the page.
      9. Go back to the page.
      10. Ensure the draft is restored.
      Show
      Test on all supported browsers (sorry) Go to the atto settings and set the autosave feature to 5 seconds. Go to 'My profile' -> 'Blogs' -> 'Add a new entry'. Write something in the 'Blog entry body' field on multiple lines, then clear the text and wait for 'Draft saved' to appear at the bottom of the editor. Leave the page. Go back to the page. Wait a bit and ensure you do not get the message 'A draft version of this text was automatically restored' at the bottom of the editor. Write something into the field and wait for it to be saved. Leave the page. Go back to the page. Ensure the draft is restored.

      This happens in more realistic scenarios than the one i'm giving here, but this is one way to reproduce it:

      1. Go atto settings and turn autosave setting to save every 5 seconds
      2. Go to My profile / ▶ Blogs / ▶ Add a new entry
      3. Clear the text, wait 5 seconds for it to be saved
      4. Leave the page
      5. Go back to the page

      Expected results:
      Nothing restored because text was empty

      Actual result:
      Atto says 'draft version was restored'. User wonders what happened to their draft because its blank

      No doubt the text is probably not empty, but has empty <p> or something. But it would be best if we didn't confuse the user.

            markn Mark Nelson
            poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Marina Glancy Marina Glancy
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.