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
2edbd2ce
Commit
2edbd2ce
authored
Apr 14, 2021
by
Dallas Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use find rather than get verbiage for spec helpers
parent
11c635a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ee/spec/frontend/contextual_sidebar/group_trial_status_popover_spec.js
...end/contextual_sidebar/group_trial_status_popover_spec.js
+3
-4
No files found.
ee/spec/frontend/contextual_sidebar/group_trial_status_popover_spec.js
View file @
2edbd2ce
...
@@ -10,6 +10,7 @@ describe('TrialStatusPopover component', () => {
...
@@ -10,6 +10,7 @@ describe('TrialStatusPopover component', () => {
let
trackingSpy
;
let
trackingSpy
;
const
findByTestId
=
(
testId
)
=>
wrapper
.
find
(
`[data-testid="
${
testId
}
"]`
);
const
findByTestId
=
(
testId
)
=>
wrapper
.
find
(
`[data-testid="
${
testId
}
"]`
);
const
findGlPopover
=
()
=>
wrapper
.
findComponent
(
GlPopover
);
const
createComponent
=
()
=>
{
const
createComponent
=
()
=>
{
return
shallowMount
(
TrialStatusPopover
,
{
return
shallowMount
(
TrialStatusPopover
,
{
...
@@ -34,8 +35,6 @@ describe('TrialStatusPopover component', () => {
...
@@ -34,8 +35,6 @@ describe('TrialStatusPopover component', () => {
wrapper
=
null
;
wrapper
=
null
;
});
});
const
getGlPopover
=
()
=>
wrapper
.
findComponent
(
GlPopover
);
it
(
'
matches the snapshot
'
,
()
=>
{
it
(
'
matches the snapshot
'
,
()
=>
{
expect
(
wrapper
.
element
).
toMatchSnapshot
();
expect
(
wrapper
.
element
).
toMatchSnapshot
();
});
});
...
@@ -71,14 +70,14 @@ describe('TrialStatusPopover component', () => {
...
@@ -71,14 +70,14 @@ describe('TrialStatusPopover component', () => {
wrapper
.
vm
.
onResize
();
wrapper
.
vm
.
onResize
();
await
wrapper
.
vm
.
$nextTick
();
await
wrapper
.
vm
.
$nextTick
();
expect
(
get
GlPopover
().
attributes
(
'
disabled
'
)).
toBe
(
isDisabled
);
expect
(
find
GlPopover
().
attributes
(
'
disabled
'
)).
toBe
(
isDisabled
);
},
},
);
);
});
});
describe
(
'
onShown
'
,
()
=>
{
describe
(
'
onShown
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
get
GlPopover
().
vm
.
$emit
(
'
shown
'
);
find
GlPopover
().
vm
.
$emit
(
'
shown
'
);
});
});
it
(
'
dispatches tracking event
'
,
()
=>
{
it
(
'
dispatches tracking event
'
,
()
=>
{
...
...
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