create_page.feature 1.42 KB
Newer Older
1
@javascript @core @portfolio
2
3
4
5
6
7
8
Feature: Creating a page with stuff in it
   In order to have a portfolio
   As a user I need navigate to to portfolio
   So I can create a page and add content to it

Scenario: Creating a page with content in it (Bug 1426983)
    # Log in as "Admin" user
9
    Given I log in as "admin" with password "Kupuhipa1"
10
    # Navigating to Portfolio to create a page
11
    # This is the test for manually creating a page
12
    And I choose "Portfolio" from main menu
13
14
    And I follow "Add"
    And I click on "Page" in the dialog
15
16
17
18
19
20
21
22
23
    And I fill in the following:
    | Page title | Test view |
    And I press "Save"
    # Adding media block
    And I expand "Media" node
    And I follow "File(s) to download"
    And I press "Add"
    And I press "Save"
    # Adding Journal block
24
    And I expand "Journals" node in the "blocktype sidebar" property
25
    And I follow "Recent journal entries"
26
27
28
    And I press "Add"
    And I press "Save"
    # Adding profile info block
29
    And I expand "Personal info" node in the "blocktype sidebar" property
30
31
32
33
    And I follow "Profile information"
    And I press "Add"
    And I press "Save"
    # Adding external media block - but cancel out
34
    And I expand "External" node in the "blocktype sidebar" property
35
36
37
    And I follow "External media"
    And I press "Add"
    And I press "Remove"
Son Nguyen's avatar
Son Nguyen committed
38
    And I display the page
39
    # Verifying the page saved and is clickable
40
    Then I should see "Test view"