group_pages.feature 2.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
@javascript @core @core_group
Feature: Copied group page keeps title
In order to make sure group page title copies correctly
As a group member
So I can see group page and check the title

Background:
Given the following "users" exist:
     | username | password | email | firstname | lastname | institution | authname | role |
10
11
     | UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
     | UserB | Kupuhipa1 | UserB@example.org | Bob | User | mahara | internal | member |
12
     | UserC | Kupuhipa1 | UserC@example.org | Cecilia | User | mahara | internal | member |
13
14
15

Given the following "groups" exist:
     | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff |
16
     | GroupA | admin | Group A owned by admin | standard | ON | ON | all | ON | ON | UserA, UserB | UserC |
17
18

Given the following "pages" exist:
19
20
     | title | description | ownertype | ownername |
     | Page GroupA_01 | Page 1 | group | GroupA |
21
22
23

Scenario: Copying a group page retains title (Bug 1519374)
 # Make the group page copyable
24
25
 Given I log in as "UserA" with password "Kupuhipa1"
 When I go to group "GroupA"
26
 And I follow "Share" in the "ul.nav-inpage" "css_element"
27
 And I click on "Edit access" in "Page GroupA_01" row
28
29
30
31
32
33
 And I follow "Advanced options"
 And I set the following fields to these values:
 | Allow copying | 1 |
 And I press "Save"
 And I log out

34
 Given I log in as "UserB" with password "Kupuhipa1"
35
 And I am on homepage
36
 When I follow "Page GroupA_01"
37
38
 And I follow "Copy"
 And the following fields match these values:
39
 | Page title | Page GroupA_01 |
40
 Then I press "Save"
41
42
43
44
45
46
47
48
49
50
51
52
53
54

Scenario: Group homepage basic settings and skins can't be edited - Bug 1718806
 Given I log in as "UserC" with password "Kupuhipa1"
 When I go to group "GroupA"
 And I should see "Edit this page"
 And I follow "Edit this page"
 And I should not see "Settings"
 And I should see "Edit layout"
 When I follow "Edit layout"
 And I should see "Layout"
 And I should not see "Basics"
 And I should not see "Skin"
 And I press "Save"
 And I should see "Page saved successfully"