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
32620938
Commit
32620938
authored
Oct 10, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use :js instead of js: true for spec
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
ff6eb578
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
30 additions
and
30 deletions
+30
-30
spec/ee/spec/features/issues/service_desk_spec.rb
spec/ee/spec/features/issues/service_desk_spec.rb
+1
-1
spec/ee/spec/features/variables_spec.rb
spec/ee/spec/features/variables_spec.rb
+1
-1
spec/features/groups/members/override_ldap_memberships_spec.rb
...features/groups/members/override_ldap_memberships_spec.rb
+3
-3
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+1
-1
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+1
-1
spec/features/merge_requests/approvals_spec.rb
spec/features/merge_requests/approvals_spec.rb
+3
-3
spec/features/merge_requests/closes_issues_spec.rb
spec/features/merge_requests/closes_issues_spec.rb
+1
-1
spec/features/merge_requests/deleted_source_branch_spec.rb
spec/features/merge_requests/deleted_source_branch_spec.rb
+1
-1
spec/features/projects/mirror_spec.rb
spec/features/projects/mirror_spec.rb
+1
-1
spec/features/projects/remote_mirror_spec.rb
spec/features/projects/remote_mirror_spec.rb
+1
-1
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+16
-16
No files found.
spec/ee/spec/features/issues/service_desk_spec.rb
View file @
32620938
require
'spec_helper'
describe
'Service Desk Issue Tracker'
,
js:
true
do
describe
'Service Desk Issue Tracker'
,
:js
do
let
(
:project
)
{
create
(
:project
,
:private
,
service_desk_enabled:
true
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
spec/ee/spec/features/variables_spec.rb
View file @
32620938
require
'spec_helper'
describe
'Project variables EE'
,
js:
true
do
describe
'Project variables EE'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:variable
)
{
create
(
:ci_variable
,
key:
'test_key'
,
value:
'test value'
)
}
...
...
spec/features/groups/members/override_ldap_memberships_spec.rb
View file @
32620938
...
...
@@ -20,13 +20,13 @@ feature 'Groups > Members > Master/Owner can override LDAP access levels' do
sign_in
(
owner
)
end
scenario
'override not available on project members page'
,
js:
true
do
scenario
'override not available on project members page'
,
:js
do
visit
namespace_project_project_members_path
(
group
,
project
)
expect
(
page
).
not_to
have_button
'Edit permissions'
end
scenario
'owner cannot override LDAP access level'
,
js:
true
do
scenario
'owner cannot override LDAP access level'
,
:js
do
stub_application_setting
(
allow_group_owners_to_manage_ldap:
false
)
visit
group_group_members_path
(
group
)
...
...
@@ -38,7 +38,7 @@ feature 'Groups > Members > Master/Owner can override LDAP access levels' do
end
end
scenario
'owner can override LDAP access level'
,
js:
true
do
scenario
'owner can override LDAP access level'
,
:js
do
ldap_override_message
=
'John Doe is currently an LDAP user. Editing their permissions will override the settings from the LDAP group sync.'
visit
group_group_members_path
(
group
)
...
...
spec/features/issues/issue_sidebar_spec.rb
View file @
32620938
...
...
@@ -165,7 +165,7 @@ feature 'Issue Sidebar' do
end
end
context
'updating weight'
,
js:
true
do
context
'updating weight'
,
:js
do
before
do
project
.
team
<<
[
user
,
:master
]
visit_issue
(
project
,
issue
)
...
...
spec/features/issues_spec.rb
View file @
32620938
...
...
@@ -402,7 +402,7 @@ describe 'Issues', :js do
end
end
describe
'update weight from issue#show'
,
js:
true
do
describe
'update weight from issue#show'
,
:js
do
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
before
do
...
...
spec/features/merge_requests/approvals_spec.rb
View file @
32620938
...
...
@@ -208,7 +208,7 @@ feature 'Merge request approvals', :js do
sign_in
(
user
)
end
context
'when group is assigned to a project'
,
js:
true
do
context
'when group is assigned to a project'
,
:js
do
before
do
create
:approver_group
,
group:
group
,
target:
project
visit
project_merge_request_path
(
project
,
merge_request
)
...
...
@@ -227,7 +227,7 @@ feature 'Merge request approvals', :js do
end
end
context
'when group is assigned to a merge request'
,
js:
true
do
context
'when group is assigned to a merge request'
,
:js
do
before
do
create
:approver_group
,
group:
group
,
target:
merge_request
visit
project_merge_request_path
(
project
,
merge_request
)
...
...
@@ -247,7 +247,7 @@ feature 'Merge request approvals', :js do
end
end
context
'when CI is running but no approval given'
,
js:
true
do
context
'when CI is running but no approval given'
,
:js
do
before
do
create
:approver_group
,
group:
group
,
target:
merge_request
pipeline
=
create
(
:ci_empty_pipeline
,
project:
project
,
sha:
merge_request
.
diff_head_sha
,
ref:
merge_request
.
source_branch
)
...
...
spec/features/merge_requests/closes_issues_spec.rb
View file @
32620938
...
...
@@ -76,7 +76,7 @@ feature 'Merge Request closing issues message', :js do
end
end
context
'approvals are enabled while closing issues'
,
js:
true
do
context
'approvals are enabled while closing issues'
,
:js
do
before
do
project
.
team
<<
[
user
,
:developer
]
end
...
...
spec/features/merge_requests/deleted_source_branch_spec.rb
View file @
32620938
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
# This test serves as a regression test for a bug that caused an error
# message to be shown by JavaScript when the source branch was deleted.
# Please do not remove "
js: true
".
# Please do not remove "
:js
".
describe
'Deleted source branch'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:merge_request
)
{
create
(
:merge_request
)
}
...
...
spec/features/projects/mirror_spec.rb
View file @
32620938
require
'spec_helper'
feature
'Project mirror'
,
js:
true
do
feature
'Project mirror'
,
:js
do
include
ReactiveCachingHelpers
let
(
:project
)
{
create
(
:project
,
:mirror
,
:import_finished
,
:repository
,
creator:
user
,
name:
'Victorialand'
)
}
...
...
spec/features/projects/remote_mirror_spec.rb
View file @
32620938
...
...
@@ -5,7 +5,7 @@ feature 'Project remote mirror', feature: true do
let
(
:remote_mirror
)
{
project
.
remote_mirrors
.
first
}
let
(
:user
)
{
create
(
:user
)
}
describe
'On a project'
,
js:
true
do
describe
'On a project'
,
:js
do
before
do
project
.
team
<<
[
user
,
:master
]
sign_in
user
...
...
spec/features/promotion_spec.rb
View file @
32620938
require
'spec_helper'
describe
'Promotions'
,
js:
true
do
describe
'Promotions'
,
:js
do
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:otherdeveloper
)
{
create
(
:user
,
name:
'TheOtherDeveloper'
)
}
...
...
@@ -44,7 +44,7 @@ describe 'Promotions', js: true do
end
end
describe
'for project features in general'
,
js:
true
do
describe
'for project features in general'
,
:js
do
context
'for .com'
do
before
do
project
.
team
<<
[
user
,
:master
]
...
...
@@ -68,7 +68,7 @@ describe 'Promotions', js: true do
end
end
describe
'for service desk'
,
js:
true
do
describe
'for service desk'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -95,7 +95,7 @@ describe 'Promotions', js: true do
end
end
describe
'for merge request improve'
,
js:
true
do
describe
'for merge request improve'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -122,7 +122,7 @@ describe 'Promotions', js: true do
end
end
describe
'for repository features'
,
js:
true
do
describe
'for repository features'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -150,7 +150,7 @@ describe 'Promotions', js: true do
end
end
describe
'for squash commits'
,
js:
true
do
describe
'for squash commits'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -177,7 +177,7 @@ describe 'Promotions', js: true do
end
end
describe
'for burndown charts'
,
js:
true
do
describe
'for burndown charts'
,
:js
do
before
do
stub_application_setting
(
check_namespace_plan:
true
)
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
...
...
@@ -204,7 +204,7 @@ describe 'Promotions', js: true do
end
end
describe
'for issue boards '
,
js:
true
do
describe
'for issue boards '
,
:js
do
before
do
stub_application_setting
(
check_namespace_plan:
true
)
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
...
...
@@ -231,7 +231,7 @@ describe 'Promotions', js: true do
end
end
describe
'for issue export'
,
js:
true
do
describe
'for issue export'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -247,7 +247,7 @@ describe 'Promotions', js: true do
end
end
describe
'for issue weight'
,
js:
true
do
describe
'for issue weight'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -256,7 +256,7 @@ describe 'Promotions', js: true do
sign_in
(
user
)
end
it
'should appear on the page'
,
js:
true
do
it
'should appear on the page'
,
:js
do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.promote-weight-link'
).
click
...
...
@@ -264,7 +264,7 @@ describe 'Promotions', js: true do
end
end
describe
'for issue templates'
,
js:
true
do
describe
'for issue templates'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -273,7 +273,7 @@ describe 'Promotions', js: true do
sign_in
(
user
)
end
it
'should appear on the page'
,
js:
true
do
it
'should appear on the page'
,
:js
do
visit
new_project_issue_path
(
project
)
wait_for_requests
find
(
'#promotion-issue-template-link'
).
click
...
...
@@ -281,7 +281,7 @@ describe 'Promotions', js: true do
end
end
describe
'for project audit events'
,
js:
true
do
describe
'for project audit events'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -296,7 +296,7 @@ describe 'Promotions', js: true do
end
end
describe
'for group contribution analytics'
,
js:
true
do
describe
'for group contribution analytics'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
@@ -326,7 +326,7 @@ describe 'Promotions', js: true do
end
end
describe
'for advanced search'
,
js:
true
do
describe
'for advanced search'
,
:js
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
...
...
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