Comment 17 for bug 1044878

Revision history for this message
Steven (stevens-q) wrote :

Commit hash: 62d8203a7324ed62e000c0e98b809ba710278b68
Environment tested: Master
Browser tested: Chrome
Theme used: Primary school

PRECONDITIONS:
------------------------
1) Mahara User exists (no roles)
2) Note block exists (title=Note1) on portfolio page "Version 1"

TEST STEPS:
------------------------
1) Log in as Mahara user (no roles)
2) Create a portfolio page (portfolio page "Version 2")
3) Add a Note block to the page
4) In the Note block modal, click the "Use content from another note" button
5) Select the note "Note1" as mentioned in the preconditions
6) Once a note has been selected
7) Verify that the following text is displayed: "If you edit the text of this block, it will also be changed in 0 other block(s) where it appears. Make a copy" ✔
8) Verify that the make a copy link is displayed in the above text ✔
9) Verify that the "Edit all copies of this note" yes/No toggle is displayed ✔
10) Verify that the Tiny MCE editor is hidden (user cannot edit the text) ✔

**** OPTION 1 : If the "Edit all copies of this note" yes/No toggle is set to Yes

11) Verify that the Tiny MCE editor is displayed and the note text is editable ✔
12) Edit the note text and edit the title for the note block
13) Click the save button
14) Verify that the changes have been made for the page
15) Browse to the portfolio page that contains the original note block (portfolio page "Version 1")
16) Verify that the Note text and title have the new changed made after the edit ✔

**** OPTION 2 : if the Make a copy link is clicked

11) Verify that the Tiny MCE editor is displayed and the note text is editable ✔
12) Verify that the "Edit all copies of this note" yes/No toggle is hidden ✔
13) Edit the note text and edit the title for the note block
14) Click the save button
15) Verify that the changes have been made for the page ✔
16) Browse to the portfolio page that contains the original note block (portfolio page "Version 1")
17) Verify that the original note block title and note text have not been changed ✔

ALso check

1) When you place a note on a page and then go to a different page and select to use the note from page 1, the message reads: "If you edit the text of this block, it will also be changed in 0 other block(s) where it appears." ✔
2) Verify the following when selecting "Use content from another note and selecting a note.
 a) User cannot navigate away from the note modal unless they either click save button, Remove link or click the x icon on the modal window." ✔
 b) Clicking remove link = Closes modal window and there are no changes to the page " ✔
 c) Clicking the x icon on the modal window. = Will display an alert Box with the following text "Are you sure you wish to delete this block?" and a Cancel button and OK button " ✔
  * Clicking the "OK" button will close the modal window and there are no changes to the page" ✔
  * Clicking Cancel button closes the alert box and modal window is still open " ✔

Catalyst QA Approved ✔