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
0cf0c0e6
Commit
0cf0c0e6
authored
Jul 29, 2020
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ignored spec for select environment
parent
dfe0f8bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/frontend/monitoring/components/dashboard_header_spec.js
spec/frontend/monitoring/components/dashboard_header_spec.js
+7
-7
No files found.
spec/frontend/monitoring/components/dashboard_header_spec.js
View file @
0cf0c0e6
...
...
@@ -124,11 +124,13 @@ describe('Dashboard header', () => {
describe
(
'
when environments data is loaded
'
,
()
=>
{
const
currentDashboard
=
dashboardGitResponse
[
0
].
path
;
const
currentEnvironmentName
=
environmentData
[
0
].
name
;
beforeEach
(()
=>
{
setupStoreWithData
(
store
);
store
.
state
.
monitoringDashboard
.
projectPath
=
mockProjectPath
;
store
.
state
.
monitoringDashboard
.
currentDashboard
=
currentDashboard
;
store
.
state
.
monitoringDashboard
.
currentEnvironmentName
=
currentEnvironmentName
;
return
wrapper
.
vm
.
$nextTick
();
});
...
...
@@ -145,15 +147,13 @@ describe('Dashboard header', () => {
});
});
// Note: This test is not working, .active does not show the active environment
// https://gitlab.com/gitlab-org/gitlab/-/issues/230615
// eslint-disable-next-line jest/no-disabled-tests
it
.
skip
(
'
renders the environments dropdown with a single active element
'
,
()
=>
{
const
activeItem
=
findEnvsDropdownItems
().
wrappers
.
filter
(
itemWrapper
=>
itemWrapper
.
find
(
'
.active
'
).
exists
(),
it
(
'
renders the environments dropdown with an active element
'
,
()
=>
{
const
selectedItems
=
findEnvsDropdownItems
().
filter
(
item
=>
item
.
attributes
(
'
active
'
)
===
'
true
'
,
);
expect
(
activeItem
.
length
).
toBe
(
1
);
expect
(
selectedItems
.
length
).
toBe
(
1
);
expect
(
selectedItems
.
at
(
0
).
text
()).
toBe
(
currentEnvironmentName
);
});
it
(
'
filters rendered dropdown items
'
,
()
=>
{
...
...
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