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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
1eeb7084
Commit
1eeb7084
authored
Jul 10, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix QA test scenario for creating a new project
parent
6b76c19b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
19 deletions
+8
-19
qa/qa.rb
qa/qa.rb
+0
-1
qa/qa/page/main/menu.rb
qa/qa/page/main/menu.rb
+7
-0
qa/qa/page/main/projects.rb
qa/qa/page/main/projects.rb
+0
-16
qa/qa/scenario/gitlab/project/create.rb
qa/qa/scenario/gitlab/project/create.rb
+1
-2
No files found.
qa/qa.rb
View file @
1eeb7084
...
...
@@ -49,7 +49,6 @@ module QA
autoload
:Entry
,
'qa/page/main/entry'
autoload
:Menu
,
'qa/page/main/menu'
autoload
:Groups
,
'qa/page/main/groups'
autoload
:Projects
,
'qa/page/main/projects'
end
module
Project
...
...
qa/qa/page/main/menu.rb
View file @
1eeb7084
...
...
@@ -14,6 +14,13 @@ module QA
within_user_menu
{
click_link
'Admin area'
}
end
def
go_to_new_project
within_user_menu
do
find
(
'.header-new-dropdown-toggle'
).
click
click_link
(
'New project'
)
end
end
def
sign_out
within_user_menu
do
find
(
'.header-user-dropdown-toggle'
).
click
...
...
qa/qa/page/main/projects.rb
deleted
100644 → 0
View file @
6b76c19b
module
QA
module
Page
module
Main
class
Projects
<
Page
::
Base
def
go_to_new_project
##
# There are 'New Project' and 'New project' buttons on the projects
# page, so we can't use `click_on`.
#
button
=
find
(
'a'
,
text:
/^new project$/i
)
button
.
click
end
end
end
end
end
qa/qa/scenario/gitlab/project/create.rb
View file @
1eeb7084
...
...
@@ -14,8 +14,7 @@ module QA
def
perform
Page
::
Main
::
Menu
.
act
{
go_to_groups
}
Page
::
Main
::
Groups
.
act
{
prepare_test_namespace
}
Page
::
Main
::
Menu
.
act
{
go_to_projects
}
Page
::
Main
::
Projects
.
act
{
go_to_new_project
}
Page
::
Main
::
Menu
.
act
{
go_to_new_project
}
Page
::
Project
::
New
.
perform
do
|
page
|
page
.
choose_test_namespace
...
...
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