Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
0755766c
Commit
0755766c
authored
Mar 05, 2015
by
Eduardo Schicker
Committed by
Jinelle Foley-Barnes
Mar 05, 2015
Browse files
Behat test: Create external links (Bug 1426983)
Change-Id: Ice4db030da0ca23af78cef9f69e056d9ca5dccad
parent
e775c871
Changes
1
Show whitespace changes
Inline
Side-by-side
test/behat/features/admin/create_and_delete_menu_item.feature
0 → 100644
View file @
0755766c
@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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment