copy_note_content.feature 1.32 KB
Newer Older
1
2
3
4
5
6
7
8
@javascript @core @blocktype @blocktype_notes
Feature: Add a note which copies the contents
from an existing note using the "Use content from another note" option

Background:

Given the following "users" exist:
  | username | password | email | firstname | lastname | institution | authname | role |
9
  | UserA | Kupuhipa1 | UserA@example.com | Angela | User | mahara | internal | member |
10
11
And the following "pages" exist:
  | title | description| ownertype | ownername |
12
  | Page UserA_01 | Page 01| user | UserA |
13
14

Scenario: Use content from another note (Bug 1710988)
15
16
  Given I log in as "UserA" with password "Kupuhipa1"
  And I follow "Page UserA_01"
17
18
  And I follow "Edit this page"
  And I expand "General" node
19
  And I follow "Note" in the "blocktype sidebar" property
20
21
22
23
24
  And I press "Add"
  And I set the following fields to these values:
  | Block title | Note block 1 |
  | Block content | This is a test |
  And I press "Save"
25
  And I follow "Note" in the "blocktype sidebar" property
26
27
28
29
30
31
32
33
  And I press "Add"
  And I follow "Use content from another note"
  And I select the radio "Note block 1"
  # Set title after selection as selection updates the title with original one
  And I set the following fields to these values:
  | Block title | Note block 2 |
  And I press "Save"
  And I should see "This is a test" in the block "Note block 2"