create_page.feature 1.44 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@javascript @core @portfolio
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
    Given I log in as "admin" with password "Password1"
    # Verifying log in was successful
    And I should see "Admin User"
    # Navigating to Portfolio to create a page
    And I follow "Portfolio"
    And I press "Create page"
    And I fill in the following:
    | Page title | Test view |
    And I press "Save"
    # Adding media block
    And I expand "Media" node
    And I wait until the page is ready
    And I follow "File(s) to download"
    And I press "Add"
    And I press "Save"
    # Adding Journal block
    And I expand "Journals" node
   And I wait until the page is ready
   And I follow "Recent journal entries"
    And I press "Add"
    And I press "Save"
    # Adding profile info block
    And I expand "Personal info" node
    And I wait until the page is ready
    And I follow "Profile information"
    And I press "Add"
    And I press "Save"
    # Adding external media block - but cancel out
    And I expand "External" node
    And I wait until the page is ready
    And I follow "External media"
    And I press "Add"
    And I press "Remove"
42
    And I follow "Display page"
43
    # Verifying the page saved and is clickable
44
    Then I should see "Test view"