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
59c11ede
Commit
59c11ede
authored
Mar 15, 2022
by
Tristan Read
Committed by
Kyle Wiebers
Mar 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing incident status spec
parent
b4bfc7b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
spec/frontend/sidebar/components/incidents/sidebar_escalation_status_spec.js
...ar/components/incidents/sidebar_escalation_status_spec.js
+9
-4
No files found.
spec/frontend/sidebar/components/incidents/sidebar_escalation_status_spec.js
View file @
59c11ede
...
@@ -153,7 +153,7 @@ describe('SidebarEscalationStatus', () => {
...
@@ -153,7 +153,7 @@ describe('SidebarEscalationStatus', () => {
await
selectAcknowledgedStatus
();
await
selectAcknowledgedStatus
();
});
});
it
(
'
calls the mutation
'
,
async
()
=>
{
it
(
'
calls the mutation
'
,
()
=>
{
const
mutationVariables
=
{
const
mutationVariables
=
{
iid
:
'
1
'
,
iid
:
'
1
'
,
projectPath
:
'
gitlab-org/gitlab
'
,
projectPath
:
'
gitlab-org/gitlab
'
,
...
@@ -163,12 +163,17 @@ describe('SidebarEscalationStatus', () => {
...
@@ -163,12 +163,17 @@ describe('SidebarEscalationStatus', () => {
expect
(
mutationResolverMock
).
toHaveBeenCalledWith
(
mutationVariables
);
expect
(
mutationResolverMock
).
toHaveBeenCalledWith
(
mutationVariables
);
});
});
it
(
'
closes the dropdown
'
,
async
()
=>
{
it
(
'
closes the dropdown
'
,
()
=>
{
expect
(
findStatusComponent
().
isVisible
()).
toBe
(
false
);
expect
(
findStatusComponent
().
isVisible
()).
toBe
(
false
);
});
});
it
(
'
updates the status
'
,
async
()
=>
{
it
(
'
updates the status
'
,
()
=>
{
expect
(
findStatusComponent
().
attributes
(
'
value
'
)).
toBe
(
STATUS_ACKNOWLEDGED
);
// Sometimes status has a intermediate wrapping component. A quirk of vue-test-utils
// means that in that case 'value' is exposed as a prop. If no wrapping component
// exists it is exposed as an attribute.
const
statusValue
=
findStatusComponent
().
props
(
'
value
'
)
||
findStatusComponent
().
attributes
(
'
value
'
);
expect
(
statusValue
).
toBe
(
STATUS_ACKNOWLEDGED
);
});
});
});
});
...
...
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