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
36168062
Commit
36168062
authored
Dec 01, 2021
by
Coung Ngo
Committed by
Robert Speicher
Dec 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve feature specs
parent
983e4443
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
95 additions
and
96 deletions
+95
-96
spec/features/dashboard/issues_spec.rb
spec/features/dashboard/issues_spec.rb
+2
-2
spec/features/dashboard/merge_requests_spec.rb
spec/features/dashboard/merge_requests_spec.rb
+1
-1
spec/features/dashboard/milestones_spec.rb
spec/features/dashboard/milestones_spec.rb
+1
-1
spec/features/groups/empty_states_spec.rb
spec/features/groups/empty_states_spec.rb
+1
-1
spec/features/groups/issues_spec.rb
spec/features/groups/issues_spec.rb
+6
-6
spec/features/issuables/sorting_list_spec.rb
spec/features/issuables/sorting_list_spec.rb
+4
-8
spec/features/issues/user_bulk_edits_issues_labels_spec.rb
spec/features/issues/user_bulk_edits_issues_labels_spec.rb
+73
-70
spec/features/labels_hierarchy_spec.rb
spec/features/labels_hierarchy_spec.rb
+7
-7
No files found.
spec/features/dashboard/issues_spec.rb
View file @
36168062
...
...
@@ -49,7 +49,7 @@ RSpec.describe 'Dashboard Issues' do
describe
'new issue dropdown'
do
it
'shows projects only with issues feature enabled'
,
:js
do
find
(
'.new-project-item-select-button'
).
click
click_button
'Toggle project select'
page
.
within
(
'.select2-results'
)
do
expect
(
page
).
to
have_content
(
project
.
full_name
)
...
...
@@ -58,7 +58,7 @@ RSpec.describe 'Dashboard Issues' do
end
it
'shows the new issue page'
,
:js
do
find
(
'.new-project-item-select-button'
).
click
click_button
'Toggle project select'
wait_for_requests
...
...
spec/features/dashboard/merge_requests_spec.rb
View file @
36168062
...
...
@@ -34,7 +34,7 @@ RSpec.describe 'Dashboard Merge Requests' do
end
it
'shows projects only with merge requests feature enabled'
,
:js
do
find
(
'.new-project-item-select-button'
).
click
click_button
'Toggle project select'
page
.
within
(
'.select2-results'
)
do
expect
(
page
).
to
have_content
(
project
.
full_name
)
...
...
spec/features/dashboard/milestones_spec.rb
View file @
36168062
...
...
@@ -35,7 +35,7 @@ RSpec.describe 'Dashboard > Milestones' do
describe
'new milestones dropdown'
,
:js
do
it
'takes user to a new milestone page'
,
:js
do
find
(
'.new-project-item-select-button'
).
click
click_button
'Toggle project select'
page
.
within
(
'.select2-results'
)
do
first
(
'.select2-result-label'
).
click
...
...
spec/features/groups/empty_states_spec.rb
View file @
36168062
...
...
@@ -101,7 +101,7 @@ RSpec.describe 'Group empty states' do
it
"the new
#{
issuable_name
}
button opens a project dropdown"
do
within
'.empty-state'
do
find
(
'.new-project-item-select-button'
).
click
click_button
'Toggle project select'
end
expect
(
page
).
to
have_selector
(
'.ajax-project-dropdown'
)
...
...
spec/features/groups/issues_spec.rb
View file @
36168062
...
...
@@ -119,8 +119,9 @@ RSpec.describe 'Group issues page' do
end
it
'shows projects only with issues feature enabled'
,
:js
do
find
(
'.empty-state .js-lazy-loaded'
)
find
(
'.empty-state .new-project-item-link'
).
click
within
'.empty-state'
do
click_button
'Toggle project select'
end
page
.
within
(
'.select2-results'
)
do
expect
(
page
).
to
have_content
(
project
.
full_name
)
...
...
@@ -158,9 +159,7 @@ RSpec.describe 'Group issues page' do
it
'each issue item has a user-can-drag css applied'
do
visit
issues_group_path
(
group
,
sort:
'relative_position'
)
page
.
within
(
'.manual-ordering'
)
do
expect
(
page
).
to
have_selector
(
'.issue.user-can-drag'
,
count:
3
)
end
expect
(
page
).
to
have_selector
(
'.issue.user-can-drag'
,
count:
3
)
end
it
'issues should be draggable and persist order'
do
...
...
@@ -224,7 +223,8 @@ RSpec.describe 'Group issues page' do
end
it
'shows the pagination'
do
expect
(
page
).
to
have_selector
(
'.gl-pagination'
)
expect
(
page
).
to
have_link
'Prev'
expect
(
page
).
to
have_link
'Next'
end
it
'first pagination item is active'
do
...
...
spec/features/issuables/sorting_list_spec.rb
View file @
36168062
...
...
@@ -197,17 +197,13 @@ RSpec.describe 'Sort Issuable List' do
click_button
(
'Created date'
)
click_on
(
'Last updated'
)
wait_for_requests
expect
(
first_issue
).
to
include
(
last_updated_issuable
.
title
)
expect
(
last_issue
).
to
include
(
first_updated_issuable
.
title
)
expect
(
page
).
to
have_css
(
'.issue:first-child'
,
text:
last_updated_issuable
.
title
)
expect
(
page
).
to
have_css
(
'.issue:last-child'
,
text:
first_updated_issuable
.
title
)
click_on
'Sort direction'
wait_for_requests
expect
(
first_issue
).
to
include
(
first_updated_issuable
.
title
)
expect
(
last_issue
).
to
include
(
last_updated_issuable
.
title
)
expect
(
page
).
to
have_css
(
'.issue:first-child'
,
text:
first_updated_issuable
.
title
)
expect
(
page
).
to
have_css
(
'.issue:last-child'
,
text:
last_updated_issuable
.
title
)
end
end
end
...
...
spec/features/issues/user_bulk_edits_issues_labels_spec.rb
View file @
36168062
This diff is collapsed.
Click to expand it.
spec/features/labels_hierarchy_spec.rb
View file @
36168062
...
...
@@ -64,7 +64,7 @@ RSpec.describe 'Labels Hierarchy', :js do
end
else
expect_issues_list_count
(
1
)
expect
(
page
).
to
have_selector
(
'
span.issue-title-text
'
,
text:
labeled_issue
.
title
)
expect
(
page
).
to
have_selector
(
'
.issue-title
'
,
text:
labeled_issue
.
title
)
end
end
end
...
...
@@ -74,7 +74,7 @@ RSpec.describe 'Labels Hierarchy', :js do
wait_for_requests
expect
(
page
).
not_to
have_
selector
(
'.btn-link'
,
text:
child_group_label
.
title
)
expect
(
page
).
not_to
have_
link
child_group_label
.
title
end
end
...
...
@@ -107,9 +107,9 @@ RSpec.describe 'Labels Hierarchy', :js do
end
else
expect_issues_list_count
(
3
)
expect
(
page
).
to
have_selector
(
'
span.issue-title-text
'
,
text:
labeled_issue
.
title
)
expect
(
page
).
to
have_selector
(
'
span.issue-title-text
'
,
text:
labeled_issue_2
.
title
)
expect
(
page
).
to
have_selector
(
'
span.issue-title-text
'
,
text:
labeled_issue_3
.
title
)
expect
(
page
).
to
have_selector
(
'
.issue-title
'
,
text:
labeled_issue
.
title
)
expect
(
page
).
to
have_selector
(
'
.issue-title
'
,
text:
labeled_issue_2
.
title
)
expect
(
page
).
to
have_selector
(
'
.issue-title
'
,
text:
labeled_issue_3
.
title
)
end
end
end
...
...
@@ -129,7 +129,7 @@ RSpec.describe 'Labels Hierarchy', :js do
end
else
expect_issues_list_count
(
1
)
expect
(
page
).
to
have_selector
(
'
span.issue-title-text
'
,
text:
labeled_issue_3
.
title
)
expect
(
page
).
to
have_selector
(
'
.issue-title
'
,
text:
labeled_issue_3
.
title
)
end
end
...
...
@@ -231,7 +231,7 @@ RSpec.describe 'Labels Hierarchy', :js do
wait_for_requests
expect
(
page
).
not_to
have_
selector
(
'.btn-link'
,
text:
child_group_label
.
title
)
expect
(
page
).
not_to
have_
link
child_group_label
.
title
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