Commit 0755766c authored by Eduardo Schicker's avatar Eduardo Schicker Committed by Jinelle Foley-Barnes
Browse files

Behat test: Create external links (Bug 1426983)

Change-Id: Ice4db030da0ca23af78cef9f69e056d9ca5dccad
parent e775c871
@javascript @core @core_administration
Feature: Creating/Deleting external links from the Links and Resources sideblock
In order to use external links
As an admin I need to create an external link and delete it
So I can verify that it's usable
Scenario: Creating and deleting external links (Selenium 1426983)
# Log in as "Admin" user
Given I log in as "admin" with password "Password1"
# Verifying log in as successful
And I should see "Admin User"
# Entering an external link
When I follow "Administration"
And I choose "Menus" in "Configure site"
And I select "Logged-in links and resources" from "Edit:"
And I fill in "namenew" with "Test Menu Link"
And I fill in "linkedtonew" with "http://www.mahara.org/"
And I press "Add"
# Verifying item was saved
And I should see "Item saved"
And I press "Save changes"
# Verifying the link as been added successfully
And I follow "Return to site"
Then I should see "Test Menu Link"
And I follow "Administration"
And I follow "Configure site"
And I choose "Menus" in "Configure site"
And I select "Logged-in links and resources" from "Edit:"
And I press "Delete"
And I press "Save changes"
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