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
a8f18deb
Commit
a8f18deb
authored
Sep 06, 2018
by
Cecilia Vela Gurovic
Committed by
Gerrit Code Review
Sep 06, 2018
Browse files
Merge "Bug #1781503: Behat test: Add checks for a few page elements on profile page"
parents
962d46a5
7a08df33
Changes
1
Show whitespace changes
Inline
Side-by-side
test/behat/features/user_content/create_delete_page.feature
View file @
a8f18deb
...
...
@@ -19,6 +19,7 @@ Scenario: Creating a page with content in it (Bug 1426983)
# This is the test for manually creating a page
And
I choose
"Portfolio"
from main menu
And
I scroll to the base of id
"addview-button"
And
I should see
"Pages and collections"
in the
"h1 heading"
property
And
I follow
"Add"
And
I click on
"Page"
in the dialog
And I fill in the following
:
...
...
@@ -45,6 +46,13 @@ Scenario: Creating a page with content in it (Bug 1426983)
And
I press
"Save"
# Adding media blockAnd I fill in the following:
|
Page
title
|
This
is
the
edited
page
title
|
# confirm h1 page title displayed
And
I should see
"This is the edited page title"
in the
"h1 heading"
property
# confirm settings, edit and share buttons displayed
And
I should see
"Settings"
in the
".editlayout .btn-title"
element
And
I should see
"Edit"
in the
".editcontent .btn-title"
element
And
I should see
"Share"
in the
".editshare .btn-title"
element
# Adding media block
And
I expand
"Media"
node
And
I follow
"File(s) to download"
And
I press
"Add"
...
...
@@ -67,6 +75,9 @@ Scenario: Creating a page with content in it (Bug 1426983)
And
I press
"Add"
And
I press
"Remove"
# verify page elements are displayed Display page and Return to pages and collections buttons
And I should see "Display page" in the "#view-wizard-controls .btn-default
:
nth-of-type(1)"
element
And I should see "Return to pages and collections" in the "#view-wizard-controls .btn-default
:
nth-of-type(2)"
element
And
I display the page
# Show last updated date and time when seeing a portfolio page (Bug 1634591)
And
I should see
"Updated on"
in the
".text-right"
element
...
...
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