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
68a9ea61
Commit
68a9ea61
authored
May 01, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update confirm modal specs
parent
e11b003c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/frontend/confirm_modal_spec.js
spec/frontend/confirm_modal_spec.js
+4
-2
No files found.
spec/frontend/confirm_modal_spec.js
View file @
68a9ea61
...
...
@@ -51,7 +51,7 @@ describe('ConfirmModal', () => {
const
findModalOkButton
=
(
modal
,
variant
)
=>
modal
.
querySelector
(
`.modal-footer .btn-
${
variant
}
`
);
const
findModalCancelButton
=
modal
=>
modal
.
querySelector
(
'
.modal-footer .btn-secondary
'
);
const
modalIsHidden
=
()
=>
findModal
()
.
getAttribute
(
'
aria-hidden
'
)
===
'
true
'
;
const
modalIsHidden
=
()
=>
findModal
()
===
null
;
const
serializeModal
=
(
modal
,
buttonIndex
)
=>
{
const
{
modalAttributes
}
=
buttons
[
buttonIndex
];
...
...
@@ -101,7 +101,9 @@ describe('ConfirmModal', () => {
});
it
(
'
closes the modal
'
,
()
=>
{
expect
(
modalIsHidden
()).
toBe
(
true
);
setImmediate
(()
=>
{
expect
(
modalIsHidden
()).
toBe
(
true
);
});
});
});
});
...
...
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