Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
b762a6d6
Commit
b762a6d6
authored
May 28, 2019
by
Steven Spinelli
Committed by
Robert Lyon
Jun 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Behat Bug 1732302 Behat: fix secret_URL test
Change-Id: Ie55f6083e93ccf3a8d29c5e0ef6a62fa71950d0d
parent
f9d4f332
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
test/behat/features/user_content/secret_url.feature
test/behat/features/user_content/secret_url.feature
+18
-10
No files found.
test/behat/features/user_content/secret_url.feature
View file @
b762a6d6
@javascript
@core
@core_artefact
@core_portfolio
Feature
:
Button to reliably copy secret URLs
In order to copy a
secret URL
s
As an admin I need to create page
So I can press secret URLs button and copy it
Feature
:
Check Secret URL functionality
1) Log in and create
sec
e
ret URL
2) Verify copy icon button is displayed
3) Verify that Secret URL was created
Background
:
Given the following "pages" exist
:
|
title
|
description
|
ownertype
|
ownername
|
|
Page
admin
_01
|
Page
|
admin
|
admin
|
|
Page
admin
A
|
Page
|
admin
|
admin
|
Scenario
:
Create a page and secret URLs to copy (Bug 1426983)
# Log in as an Admin user
Given
I log in as
"admin"
with password
"Kupuh1pa!"
# Navigating to shared by be to click button
And
I choose
"Shared by me"
in
"Share"
from main menu
And
I click on
"Edit secret URL access"
in
"Page admin
_01
"
row
And
I click on
"Edit secret URL access"
in
"Page admin
A
"
row
And
I press
"New secret URL"
# Verifying Secret URLs was created
And
I should see
"Copy secret URL to the clipboard"
And
I choose
"Shared by me"
in
"Share"
from main menu
Then
I should see
"1"
in the
"Secret urls - table row 1"
property
Then
I should see
"1"
in the
"Page admin A"
row
"""
ToDo
This script still needs the following steps:
1) user to click the "Copy secret URL to the clipboard" icon button
2) paste the copied URL into an address bar
3) verify the page title is "Page admin_01"
NOTE - To write a function for the above will take a great deal of effort and is not feasible at this time
"""
Write
Preview
Markdown
is supported
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