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
6535ca5d
Commit
6535ca5d
authored
3 years ago
by
Kushal Pandya
Committed by
Alexander Turinske
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update environment picker tests to be more readable
parent
4dd67a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
...d/threat_monitoring/components/environment_picker_spec.js
+10
-6
No files found.
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
View file @
6535ca5d
...
...
@@ -98,9 +98,11 @@ describe('EnvironmentPicker component', () => {
});
it
(
'
disables the environments dropdown
'
,
()
=>
{
expect
(
findDropdown
().
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
expect
(
findDropdown
().
attributes
(
'
text
'
)).
toBe
(
INVALID_CURRENT_ENVIRONMENT_NAME
);
expect
(
findDropdown
().
attributes
(
'
loading
'
)).
toBe
(
undefined
);
expect
(
findDropdown
().
attributes
()).
toMatchObject
({
disabled
:
'
true
'
,
text
:
INVALID_CURRENT_ENVIRONMENT_NAME
,
loading
:
undefined
,
});
});
it
(
'
has no dropdown items
'
,
()
=>
{
...
...
@@ -132,9 +134,11 @@ describe('EnvironmentPicker component', () => {
});
it
(
'
disables the environments dropdown
'
,
()
=>
{
expect
(
findDropdown
().
attributes
(
'
disabled
'
)).
toBe
(
'
true
'
);
expect
(
findDropdown
().
attributes
(
'
text
'
)).
toBe
(
LOADING_TEXT
);
expect
(
findDropdown
().
attributes
(
'
loading
'
)).
toBe
(
'
true
'
);
expect
(
findDropdown
().
attributes
()).
toMatchObject
({
disabled
:
'
true
'
,
text
:
LOADING_TEXT
,
loading
:
'
true
'
,
});
});
});
});
This diff is collapsed.
Click to expand it.
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