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
03087faa
Commit
03087faa
authored
Oct 15, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
fc96671f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
31 deletions
+32
-31
qa/qa/git/repository.rb
qa/qa/git/repository.rb
+1
-1
qa/qa/resource/repository/commit.rb
qa/qa/resource/repository/commit.rb
+3
-3
qa/qa/resource/user.rb
qa/qa/resource/user.rb
+2
-3
qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb
...s/api/3_create/repository/project_archive_compare_spec.rb
+1
-1
qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb
.../browser_ui/3_create/repository/add_file_template_spec.rb
+4
-2
qa/spec/resource/user_spec.rb
qa/spec/resource/user_spec.rb
+2
-2
spec/features/issues/filtered_search/dropdown_milestone_spec.rb
...eatures/issues/filtered_search/dropdown_milestone_spec.rb
+19
-19
No files found.
qa/qa/git/repository.rb
View file @
03087faa
...
...
@@ -76,7 +76,7 @@ module QA
end
def
configure_identity
(
name
,
email
)
run
(
%Q{git config user.name
#{
name
}
}
)
run
(
%Q{git config user.name
"
#{
name
}
"
}
)
run
(
%Q{git config user.email
#{
email
}
}
)
end
...
...
qa/qa/resource/repository/commit.rb
View file @
03087faa
...
...
@@ -59,9 +59,9 @@ module QA
def
actions
pending_actions
=
[]
@add_files
.
map
{
|
file
|
pending_actions
<<
file
.
merge
({
action:
"create"
})
}
if
@add_files
@update_files
.
map
{
|
file
|
pending_actions
<<
file
.
merge
({
action:
"update"
})
}
if
@update_files
pending_actions
pending_actions
<<
@add_files
.
map
{
|
file
|
file
.
merge
({
action:
"create"
})
}
if
@add_files
pending_actions
<<
@update_files
.
map
{
|
file
|
file
.
merge
({
action:
"update"
})
}
if
@update_files
pending_actions
.
flatten
end
private
...
...
qa/qa/resource/user.rb
View file @
03087faa
...
...
@@ -26,7 +26,7 @@ module QA
end
def
name
@name
||=
api_resource
&
.
dig
(
:name
)
||
username
@name
||=
api_resource
&
.
dig
(
:name
)
||
"QA User
#{
unique_id
}
"
end
def
email
...
...
@@ -91,9 +91,8 @@ module QA
def
self
.
fabricate_or_use
(
username
=
nil
,
password
=
nil
)
if
Runtime
::
Env
.
signup_disabled?
self
.
new
.
tap
do
|
user
|
self
.
fabricate_via_api!
do
|
user
|
user
.
username
=
username
user
.
password
=
password
end
else
self
.
fabricate!
...
...
qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb
View file @
03087faa
...
...
@@ -46,7 +46,7 @@ module QA
project
.
standalone
=
true
project
.
add_name_uuid
=
false
project
.
name
=
project_name
project
.
path_with_namespace
=
"
#{
user
.
name
}
/
#{
project_name
}
"
project
.
path_with_namespace
=
"
#{
user
.
user
name
}
/
#{
project_name
}
"
project
.
user
=
user
project
.
api_client
=
api_client
end
...
...
qa/qa/specs/features/browser_ui/3_create/repository/add_file_template_spec.rb
View file @
03087faa
...
...
@@ -6,8 +6,10 @@ module QA
include
Runtime
::
Fixtures
def
login
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
unless
Page
::
Main
::
Menu
.
perform
(
&
:signed_in?
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
end
end
before
(
:all
)
do
...
...
qa/spec/resource/user_spec.rb
View file @
03087faa
...
...
@@ -35,8 +35,8 @@ describe QA::Resource::User do
end
describe
'#name'
do
it
'defaults to the username'
do
expect
(
subject
.
name
).
to
eq
(
subject
.
username
)
it
'defaults to
a name based on
the username'
do
expect
(
subject
.
name
).
to
match
(
/
#{
subject
.
username
.
tr
(
'-'
,
' '
)
}
/i
)
end
it
'retrieves the name from the api_resource if present'
do
...
...
spec/features/issues/filtered_search/dropdown_milestone_spec.rb
View file @
03087faa
...
...
@@ -39,16 +39,28 @@ describe 'Dropdown milestone', :js do
end
describe
'behavior'
do
it
'opens when the search bar has milestone:'
do
filtered_search
.
set
(
'milestone:'
)
context
'filters by "milestone:"'
do
before
do
filtered_search
.
set
(
'milestone:'
)
end
expect
(
page
).
to
have_css
(
js_dropdown_milestone
,
visible:
true
)
end
it
'opens when the search bar has milestone:'
do
expect
(
page
).
to
have_css
(
js_dropdown_milestone
,
visible:
true
)
end
it
'closes when the search bar is unfocused'
do
find
(
'body'
).
click
it
'closes when the search bar is unfocused'
do
find
(
'body'
).
click
expect
(
page
).
to
have_css
(
js_dropdown_milestone
,
visible:
false
)
expect
(
page
).
to
have_css
(
js_dropdown_milestone
,
visible:
false
)
end
it
'hides loading indicator when loaded'
do
expect
(
find
(
js_dropdown_milestone
)).
not_to
have_css
(
'.filter-dropdown-loading'
)
end
it
'loads all the milestones when opened'
do
expect
(
filter_dropdown
).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
6
)
end
end
it
'shows loading indicator when opened'
do
...
...
@@ -58,18 +70,6 @@ describe 'Dropdown milestone', :js do
expect
(
page
).
to
have_css
(
'#js-dropdown-milestone .filter-dropdown-loading'
,
visible:
true
)
end
end
it
'hides loading indicator when loaded'
do
filtered_search
.
set
(
'milestone:'
)
expect
(
find
(
js_dropdown_milestone
)).
not_to
have_css
(
'.filter-dropdown-loading'
)
end
it
'loads all the milestones when opened'
do
filtered_search
.
set
(
'milestone:'
)
expect
(
filter_dropdown
).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
6
)
end
end
describe
'filtering'
do
...
...
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