← Back to team overview

mahara-contributors team mailing list archive

[Bug 1515398] Re: Journal entry add file should be a button

 

To test:

1. Create a new journal entry.
2. Click the "Add a file" button and upload or choose a file in the modal. Then close the modal by clicking the close icon in the upper-right.
Expected: You should see the file in the list of attachments, with a red "x" icon and the word "Remove" styled as if they're in a button.
3. Save the journal entry.
4. On the list of journal entries, click the "edit" button to go back to editing the journal entry you just saved.
5. Look at the list of attachments.
Expected: You should again see the file listed, with a red "x" icon and the word "Remove" styled as if in a button.

The "add new" and "edit existing" test cases have to be tested
separately, because the "add new" case is adding a button which is
dynamically generated using javascript, and the "edit existing" is
looking a button that is rendered from a .tpl file. Ideally, these two
should create exactly the same HTML. (Perhaps we ought to refactor this
so that they use the same code to render both somehow?)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1515398

Title:
  Journal entry add file should be a button

Status in Mahara:
  New

Bug description:
  Journal entry added a file: Shouldn't the "Remove" link be a button?

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1515398/+subscriptions


References