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
fca529c6
Commit
fca529c6
authored
Aug 07, 2020
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update maintenance mode settings button spec
parent
b14fa952
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/frontend/maintenance_mode_settings/components/app_spec.js
...frontend/maintenance_mode_settings/components/app_spec.js
+3
-3
No files found.
spec/frontend/maintenance_mode_settings/components/app_spec.js
View file @
fca529c6
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
MaintenanceModeSettingsApp
from
'
~/maintenance_mode_settings/components/app.vue
'
;
import
{
GlToggle
,
GlFormTextarea
,
Gl
Deprecated
Button
}
from
'
@gitlab/ui
'
;
import
{
GlToggle
,
GlFormTextarea
,
GlButton
}
from
'
@gitlab/ui
'
;
describe
(
'
MaintenanceModeSettingsApp
'
,
()
=>
{
let
wrapper
;
...
...
@@ -16,7 +16,7 @@ describe('MaintenanceModeSettingsApp', () => {
const
findMaintenanceModeSettingsContainer
=
()
=>
wrapper
.
find
(
'
article
'
);
const
findGlToggle
=
()
=>
wrapper
.
find
(
GlToggle
);
const
findGlFormTextarea
=
()
=>
wrapper
.
find
(
GlFormTextarea
);
const
findGlButton
=
()
=>
wrapper
.
find
(
Gl
Deprecated
Button
);
const
findGlButton
=
()
=>
wrapper
.
find
(
GlButton
);
describe
(
'
template
'
,
()
=>
{
beforeEach
(()
=>
{
...
...
@@ -35,7 +35,7 @@ describe('MaintenanceModeSettingsApp', () => {
expect
(
findGlFormTextarea
().
exists
()).
toBe
(
true
);
});
it
(
'
renders the Gl
Deprecated
Button
'
,
()
=>
{
it
(
'
renders the GlButton
'
,
()
=>
{
expect
(
findGlButton
().
exists
()).
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