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
bea18efa
Commit
bea18efa
authored
Sep 25, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced trigger calls for click
parent
7a8514c3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
spec/features/projects/members/share_with_group_spec.rb
spec/features/projects/members/share_with_group_spec.rb
+2
-2
spec/features/projects/wiki/user_views_wiki_page_spec.rb
spec/features/projects/wiki/user_views_wiki_page_spec.rb
+1
-1
spec/features/search/user_searches_for_code_spec.rb
spec/features/search/user_searches_for_code_spec.rb
+2
-2
spec/features/search/user_searches_for_issues_spec.rb
spec/features/search/user_searches_for_issues_spec.rb
+4
-4
spec/features/search/user_searches_for_merge_requests_spec.rb
.../features/search/user_searches_for_merge_requests_spec.rb
+3
-3
spec/features/search/user_searches_for_milestones_spec.rb
spec/features/search/user_searches_for_milestones_spec.rb
+3
-3
No files found.
spec/features/projects/members/share_with_group_spec.rb
View file @
bea18efa
...
@@ -41,7 +41,7 @@ feature 'Project > Members > Share with Group', :js do
...
@@ -41,7 +41,7 @@ feature 'Project > Members > Share with Group', :js do
select2
group_to_share_with
.
id
,
from:
'#link_group_id'
select2
group_to_share_with
.
id
,
from:
'#link_group_id'
page
.
find
(
'body'
).
click
page
.
find
(
'body'
).
click
find
(
'.btn-create'
).
trigger
(
'click'
)
find
(
'.btn-create'
).
click
page
.
within
(
'.project-members-groups'
)
do
page
.
within
(
'.project-members-groups'
)
do
expect
(
page
).
to
have_content
(
group_to_share_with
.
name
)
expect
(
page
).
to
have_content
(
group_to_share_with
.
name
)
...
@@ -123,7 +123,7 @@ feature 'Project > Members > Share with Group', :js do
...
@@ -123,7 +123,7 @@ feature 'Project > Members > Share with Group', :js do
fill_in
'expires_at_groups'
,
with:
(
Time
.
now
+
4.5
.
days
).
strftime
(
'%Y-%m-%d'
)
fill_in
'expires_at_groups'
,
with:
(
Time
.
now
+
4.5
.
days
).
strftime
(
'%Y-%m-%d'
)
page
.
find
(
'body'
).
click
page
.
find
(
'body'
).
click
find
(
'.btn-create'
).
trigger
(
'click'
)
find
(
'.btn-create'
).
click
end
end
scenario
'the group link shows the expiration time with a warning class'
do
scenario
'the group link shows the expiration time with a warning class'
do
...
...
spec/features/projects/wiki/user_views_wiki_page_spec.rb
View file @
bea18efa
...
@@ -133,7 +133,7 @@ describe 'User views a wiki page' do
...
@@ -133,7 +133,7 @@ describe 'User views a wiki page' do
it
'opens a default wiki page'
,
:js
do
it
'opens a default wiki page'
,
:js
do
visit
(
project_path
(
project
))
visit
(
project_path
(
project
))
find
(
'.shortcuts-wiki'
).
trigger
(
'click'
)
find
(
'.shortcuts-wiki'
).
click
expect
(
page
).
to
have_content
(
'Home · Create Page'
)
expect
(
page
).
to
have_content
(
'Home · Create Page'
)
end
end
...
...
spec/features/search/user_searches_for_code_spec.rb
View file @
bea18efa
...
@@ -32,14 +32,14 @@ describe 'User searches for code' do
...
@@ -32,14 +32,14 @@ describe 'User searches for code' do
include_examples
'top right search form'
include_examples
'top right search form'
it
'finds code'
do
it
'finds code'
do
find
(
'.js-search-project-dropdown'
).
trigger
(
'click'
)
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
name_with_namespace
)
click_link
(
project
.
name_with_namespace
)
end
end
fill_in
(
'dashboard_search'
,
with:
'rspec'
)
fill_in
(
'dashboard_search'
,
with:
'rspec'
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.results'
)
do
page
.
within
(
'.results'
)
do
expect
(
find
(
:css
,
'.search-results'
)).
to
have_content
(
'Update capybara, rspec-rails, poltergeist to recent versions'
)
expect
(
find
(
:css
,
'.search-results'
)).
to
have_content
(
'Update capybara, rspec-rails, poltergeist to recent versions'
)
...
...
spec/features/search/user_searches_for_issues_spec.rb
View file @
bea18efa
...
@@ -18,7 +18,7 @@ describe 'User searches for issues', :js do
...
@@ -18,7 +18,7 @@ describe 'User searches for issues', :js do
it
'finds an issue'
do
it
'finds an issue'
do
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Issues'
)
click_link
(
'Issues'
)
...
@@ -31,14 +31,14 @@ describe 'User searches for issues', :js do
...
@@ -31,14 +31,14 @@ describe 'User searches for issues', :js do
context
'when on a project page'
do
context
'when on a project page'
do
it
'finds an issue'
do
it
'finds an issue'
do
find
(
'.js-search-project-dropdown'
).
trigger
(
'click'
)
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
name_with_namespace
)
click_link
(
project
.
name_with_namespace
)
end
end
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Issues'
)
click_link
(
'Issues'
)
...
@@ -62,7 +62,7 @@ describe 'User searches for issues', :js do
...
@@ -62,7 +62,7 @@ describe 'User searches for issues', :js do
it
'finds an issue'
do
it
'finds an issue'
do
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
fill_in
(
'dashboard_search'
,
with:
issue1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Issues'
)
click_link
(
'Issues'
)
...
...
spec/features/search/user_searches_for_merge_requests_spec.rb
View file @
bea18efa
...
@@ -17,7 +17,7 @@ describe 'User searches for merge requests', :js do
...
@@ -17,7 +17,7 @@ describe 'User searches for merge requests', :js do
it
'finds a merge request'
do
it
'finds a merge request'
do
fill_in
(
'dashboard_search'
,
with:
merge_request1
.
title
)
fill_in
(
'dashboard_search'
,
with:
merge_request1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Merge requests'
)
click_link
(
'Merge requests'
)
...
@@ -30,14 +30,14 @@ describe 'User searches for merge requests', :js do
...
@@ -30,14 +30,14 @@ describe 'User searches for merge requests', :js do
context
'when on a project page'
do
context
'when on a project page'
do
it
'finds a merge request'
do
it
'finds a merge request'
do
find
(
'.js-search-project-dropdown'
).
trigger
(
'click'
)
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
name_with_namespace
)
click_link
(
project
.
name_with_namespace
)
end
end
fill_in
(
'dashboard_search'
,
with:
merge_request1
.
title
)
fill_in
(
'dashboard_search'
,
with:
merge_request1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Merge requests'
)
click_link
(
'Merge requests'
)
...
...
spec/features/search/user_searches_for_milestones_spec.rb
View file @
bea18efa
...
@@ -17,7 +17,7 @@ describe 'User searches for milestones', :js do
...
@@ -17,7 +17,7 @@ describe 'User searches for milestones', :js do
it
'finds a milestone'
do
it
'finds a milestone'
do
fill_in
(
'dashboard_search'
,
with:
milestone1
.
title
)
fill_in
(
'dashboard_search'
,
with:
milestone1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Milestones'
)
click_link
(
'Milestones'
)
...
@@ -30,14 +30,14 @@ describe 'User searches for milestones', :js do
...
@@ -30,14 +30,14 @@ describe 'User searches for milestones', :js do
context
'when on a project page'
do
context
'when on a project page'
do
it
'finds a milestone'
do
it
'finds a milestone'
do
find
(
'.js-search-project-dropdown'
).
trigger
(
'click'
)
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
name_with_namespace
)
click_link
(
project
.
name_with_namespace
)
end
end
fill_in
(
'dashboard_search'
,
with:
milestone1
.
title
)
fill_in
(
'dashboard_search'
,
with:
milestone1
.
title
)
find
(
'.btn-search'
).
trigger
(
'click'
)
find
(
'.btn-search'
).
click
page
.
within
(
'.search-filter'
)
do
page
.
within
(
'.search-filter'
)
do
click_link
(
'Milestones'
)
click_link
(
'Milestones'
)
...
...
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