Commit 67d34721 authored by Eduardo Schicker's avatar Eduardo Schicker Committed by Gerrit Code Review
Browse files

Behat Test: Creating portfolio page (Bug 1426983)

This test needs to be able to expand nodes.

Block titles needs to be able to be clicked somehow that's human
readable if possible.

Change-Id: Ib79a4916b72643836fa7e43e558671c3b97324ad
parent ca2b15bb
@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"
And I press "Done"
# Verifying the page saved and is clickable
Then I should see "Test view"
And I follow "Test view"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment