Commit ec666d1f authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon

Bug 1752489: Behat test: One resume field block

Test for adding the interests field to a block
-added 1 second wait to webservices_create_service_group.feature as test
was failing
-added css locator for resume field block to properties file

Change-Id: I343da1cf122e0b4f74d44a89ebf81bc018d8883b
parent beac4400
......@@ -13,6 +13,7 @@ define ("LOCATOR_CONSTANTS", json_encode(array(
'Arrow-bar nav' => array(".arrow-bar", "css_element"),
'My portfolios' => array(".bt-myviews", "css_element"),
'Latest changes I can view' => array(".bt-newviews", "css_element"),
'Resume field block' => array(".bt-resumefield", "css_element"),
'Watched pages' => array(".bt-watchlist", "css_element"),
'Comment preview' => array(".commentreplyview", "css_element"),
'Comment text' => array(".comment-text", "css_element"),
......
......@@ -27,6 +27,7 @@ Scenario: Turning master switch on
And I set the field "service" to "Test service"
And I press "Add"
And I scroll to the top
And I wait "1" seconds
And I click on "Edit" in "Test service" row
And I set the field "Short name" to "testservice"
And I enable the switch "Service"
......
......@@ -14,6 +14,10 @@ Background:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuhipa1 | UserA@example.org | Angela | User | mahara | internal | member |
And the following "pages" exist:
| title | description | ownertype | ownername |
| Page UserA_01 | Page 01| user | UserA |
Scenario: Editing admin resume page (Bug 1426983)
Given I log in as "UserA" with password "Kupuhipa1"
# Editing resume
......@@ -277,10 +281,18 @@ Scenario: Adding interests
And I follow "Interests"
And I press "Edit"
And I set the following fields to these values:
| Interest | test |
| Interest | running, swimming, skydiving, clarinet |
And I press "Save"
And I should see "Saved successfully"
And I scroll to the top
And I choose "Pages and collections" in "Portfolio" from main menu
And I click on "Edit" in "Page UserA_01" panel menu
And I expand "Personal info" node
And I follow "One résumé field"
And I press "Add"
And I select the radio "Interests"
And I press "Save"
And I display the page
And I should see "clarinet" in the "Resume field block" property
Scenario: Adding license info
Given I log in as "UserA" with password "Kupuhipa1"
......
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