Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d37bee3b
Commit
d37bee3b
authored
Jul 27, 2020
by
Tomislav Nikić
Committed by
Dan Davison
Jul 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Page Object Modifications
Adding a new tag to the wiki directories on the sidebar and using that in a PO
parent
645cacf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
app/views/shared/wikis/_wiki_directory.html.haml
app/views/shared/wikis/_wiki_directory.html.haml
+1
-1
qa/qa/page/project/wiki/sidebar.rb
qa/qa/page/project/wiki/sidebar.rb
+8
-0
qa/qa/specs/features/browser_ui/3_create/wiki/project_based_directory_management_spec.rb
.../3_create/wiki/project_based_directory_management_spec.rb
+31
-0
No files found.
app/views/shared/wikis/_wiki_directory.html.haml
View file @
d37bee3b
%li
%li
{
data:
{
qa_selector:
'wiki_directory_content'
}
}
=
wiki_directory
.
slug
=
wiki_directory
.
slug
%ul
%ul
=
render
wiki_directory
.
pages
,
context:
context
=
render
wiki_directory
.
pages
,
context:
context
qa/qa/page/project/wiki/sidebar.rb
View file @
d37bee3b
...
@@ -18,6 +18,10 @@ module QA
...
@@ -18,6 +18,10 @@ module QA
base
.
view
'app/views/shared/wikis/_sidebar_wiki_page.html.haml'
do
base
.
view
'app/views/shared/wikis/_sidebar_wiki_page.html.haml'
do
element
:wiki_page_link
element
:wiki_page_link
end
end
base
.
view
'app/views/shared/wikis/_wiki_directory.html.haml'
do
element
:wiki_directory_content
end
end
end
def
click_clone_repository
def
click_clone_repository
...
@@ -35,6 +39,10 @@ module QA
...
@@ -35,6 +39,10 @@ module QA
def
has_page_listed?
(
page_title
)
def
has_page_listed?
(
page_title
)
has_element?
:wiki_page_link
,
page_name:
page_title
has_element?
:wiki_page_link
,
page_name:
page_title
end
end
def
has_directory?
(
directory
)
has_element?
:wiki_directory_content
,
text:
directory
end
end
end
end
end
end
end
...
...
qa/qa/specs/features/browser_ui/3_create/wiki/project_based_directory_management_spec.rb
0 → 100644
View file @
d37bee3b
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Create'
do
context
'Wiki'
do
let
(
:initial_wiki
)
{
Resource
::
Wiki
::
ProjectPage
.
fabricate_via_api!
}
let
(
:new_path
)
{
"a/new/path"
}
before
do
Flow
::
Login
.
sign_in
end
it
'has changed the directory'
do
initial_wiki
.
visit!
Page
::
Project
::
Wiki
::
Show
.
perform
(
&
:click_edit
)
Page
::
Project
::
Wiki
::
Edit
.
perform
do
|
edit
|
edit
.
set_title
(
"
#{
new_path
}
/home"
)
edit
.
set_message
(
'changing the path of the home page'
)
end
Page
::
Project
::
Wiki
::
Edit
.
perform
(
&
:click_save_changes
)
Page
::
Project
::
Wiki
::
Show
.
perform
do
|
wiki
|
expect
(
wiki
).
to
have_directory
(
new_path
)
end
end
end
end
end
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