edit_default_portfolio_page.feature 2.13 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
@javascript @core @core_administration
Feature: Edit the site default portfolio page
In order to update the site default portfolio page
As an admin
I can edit the site default portfolio page
As a user
I can create a new page from the site default portfolio page

  Background:
    Given the following "users" exist:
      | username | password | email | firstname | lastname | institution | authname | role |
12
      | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
13
14

  Scenario: Add a text block into the site default portfolio page and create a new portfolio page (Bug 1488255)
15
    Given I log in as "admin" with password "Kupuhipa1"
16
17
    And I click on "Show Administration Menu"
    And I choose "Pages and collections" in "Configure site" from Admin menu
18
    And I should see "Page template"
19
20
    And I click on "Page template" panel menu
    And I click on "Edit" in "Page template" panel menu
21
    And I should see "Drag blocks onto the page to add them. You can then also drag them around the page to change their position."
22
23
24
25
26
27
28
29
30
31
32
33
34
    # Add a text block
    And I follow "Text"
    And I press "Add"
    And I wait "1" seconds
    And I set the following fields to these values:
     | Block title | Sample text block |
     | Block content | <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> |
    And I press "Save"
    And I should see "Sample text block"
    And I should see "Lorem Ipsum is simply dummy text of the printing and typesetting industry."
    And I log out
    And I should see "Login"
    # Create a new portfolio page
35
    And I log in as "userA" with password "Kupuhipa1"
36
    And I click on "Show Menu"
37
    And I choose "Portfolio"
38
39
40
    And I should see "Pages and collections"
    And I follow "Add"
    And I click on "Page" in the dialog
41
42
43
    And I should see "Edit title and description"
    And I click on "Edit content"
    Then I should see "Lorem Ipsum is simply dummy text of the printing and typesetting industry."