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
7a08df33
Commit
7a08df33
authored
Jul 13, 2018
by
Steven Spinelli
Committed by
Rebecca Blundell
Sep 03, 2018
Browse files
Bug #1781503: Behat test: Add checks for a few page elements on profile page
Change-Id: If68dcf9f033bbb43b2efa80797fdbb31df141de4
parent
f68635ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/user_content/create_delete_page.feature
View file @
7a08df33
...
@@ -19,6 +19,7 @@ Scenario: Creating a page with content in it (Bug 1426983)
...
@@ -19,6 +19,7 @@ Scenario: Creating a page with content in it (Bug 1426983)
# This is the test for manually creating a page
# This is the test for manually creating a page
And
I choose
"Portfolio"
from main menu
And
I choose
"Portfolio"
from main menu
And
I scroll to the base of id
"addview-button"
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 follow
"Add"
And
I click on
"Page"
in the dialog
And
I click on
"Page"
in the dialog
And I fill in the following
:
And I fill in the following
:
...
@@ -41,6 +42,13 @@ Scenario: Creating a page with content in it (Bug 1426983)
...
@@ -41,6 +42,13 @@ Scenario: Creating a page with content in it (Bug 1426983)
And
I press
"Save"
And
I press
"Save"
# Adding media blockAnd I fill in the following:
# Adding media blockAnd I fill in the following:
|
Page
title
|
This
is
the
edited
page
title
|
|
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 expand
"Media"
node
And
I follow
"File(s) to download"
And
I follow
"File(s) to download"
And
I press
"Add"
And
I press
"Add"
...
@@ -63,6 +71,9 @@ Scenario: Creating a page with content in it (Bug 1426983)
...
@@ -63,6 +71,9 @@ Scenario: Creating a page with content in it (Bug 1426983)
And
I press
"Add"
And
I press
"Add"
And
I press
"Remove"
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
And
I display the page
# Show last updated date and time when seeing a portfolio page (Bug 1634591)
# Show last updated date and time when seeing a portfolio page (Bug 1634591)
And
I should see
"Updated on"
in the
".text-right"
element
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