Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
c3e4acd8
Commit
c3e4acd8
authored
2 years ago
by
Claudiu Cristea
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-7466: Test coverage.
parent
c747c2a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!58
ISAICP-7466: Can't add news
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/features/custom_page/custom_page.edit.feature
+33
-2
33 additions, 2 deletions
tests/features/custom_page/custom_page.edit.feature
with
33 additions
and
2 deletions
tests/features/custom_page/custom_page.edit.feature
+
33
−
2
View file @
c3e4acd8
...
...
@@ -31,12 +31,29 @@ Feature: "Custom page" editing.
# A moderator can edit all custom pages.
When
I am logged in as a user with the moderator role
And
I go to the
"Buena Vista Distribution Company"
custom page
# Moderators have the 'administer nodes' permission.
Then
I should see the link
"Edit"
When
I click
"Edit"
Then
I should see the heading
"Edit Custom page Buena Vista Distribution Company"
And
the following fields should be present
"Title, Body, Published"
And
the following fields should not be present
"Groups audience, Other groups, Generate automatic URL alias, URL alias"
And I should not see the following lines of text
:
|
Authored
on
|
|
Create
new
revision
|
|
URL
alias
(Automatic
alias)
|
|
Generate
automatic
URL
alias
|
|
Uncheck
this
to
create
a
custom
alias
below.
|
|
Groups
audience
|
|
Other
groups
|
|
Promoted
to
front
page
|
|
Revision
information
|
|
Revision
log
message
|
|
Sticky
at
top
of
lists
|
# A normal logged in user should not be able to edit the custom page.
When
I am logged in as a user with the authenticated role
And
I go to the
"Buena Vista Distribution Company"
custom page
Then
I should not see the link
"Edit"
# An anonymous user cannot edit the custom page.
When
I am logged in as a user with the authenticated role
And
I go to the
"Buena Vista Distribution Company"
custom page
...
...
@@ -48,7 +65,21 @@ Feature: "Custom page" editing.
And
I click
"Edit"
Then
I should see the heading
"Edit Custom page Buena Vista Distribution Company"
And
the following fields should be present
"Title, Body, Published"
And
the following fields should not be present
"Groups audience, Other groups"
And
the following fields should not be present
"Groups audience, Other groups, URL alias"
And
the following fields should not be present
"Groups audience, Other groups, Generate automatic URL alias, URL alias"
And I should not see the following lines of text
:
|
Authored
on
|
|
Create
new
revision
|
|
URL
alias
(Automatic
alias)
|
|
Generate
automatic
URL
alias
|
|
Uncheck
this
to
create
a
custom
alias
below.
|
|
Groups
audience
|
|
Other
groups
|
|
Promoted
to
front
page
|
|
Revision
information
|
|
Revision
log
message
|
|
Sticky
at
top
of
lists
|
When
I fill in
"Title"
with
"Walt Disney Studios Motion Pictures"
And
I press
"Save"
Then
I should have a
"Custom page"
content page titled
"Walt Disney Studios Motion Pictures"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment