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
235b8e04
Commit
235b8e04
authored
May 04, 2020
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use findRows helper in pipelines_table_spec
parent
4100fb9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/frontend/pipelines/pipelines_table_spec.js
spec/frontend/pipelines/pipelines_table_spec.js
+3
-2
No files found.
spec/frontend/pipelines/pipelines_table_spec.js
View file @
235b8e04
...
@@ -18,6 +18,7 @@ describe('Pipelines Table', () => {
...
@@ -18,6 +18,7 @@ describe('Pipelines Table', () => {
propsData
:
props
,
propsData
:
props
,
});
});
};
};
const
findRows
=
()
=>
wrapper
.
findAll
(
'
.commit.gl-responsive-table-row
'
);
preloadFixtures
(
jsonFixtureName
);
preloadFixtures
(
jsonFixtureName
);
...
@@ -51,7 +52,7 @@ describe('Pipelines Table', () => {
...
@@ -51,7 +52,7 @@ describe('Pipelines Table', () => {
describe
(
'
without data
'
,
()
=>
{
describe
(
'
without data
'
,
()
=>
{
it
(
'
should render an empty table
'
,
()
=>
{
it
(
'
should render an empty table
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.commit.gl-responsive-table-row
'
).
exists
()).
toBe
(
false
);
expect
(
findRows
()).
toHaveLength
(
0
);
});
});
});
});
...
@@ -59,7 +60,7 @@ describe('Pipelines Table', () => {
...
@@ -59,7 +60,7 @@ describe('Pipelines Table', () => {
it
(
'
should render rows
'
,
()
=>
{
it
(
'
should render rows
'
,
()
=>
{
createComponent
({
pipelines
:
[
pipeline
],
autoDevopsHelpPath
:
'
foo
'
,
viewType
:
'
root
'
});
createComponent
({
pipelines
:
[
pipeline
],
autoDevopsHelpPath
:
'
foo
'
,
viewType
:
'
root
'
});
expect
(
wrapper
.
findAll
(
'
.commit.gl-responsive-table-row
'
)).
toHaveLength
(
1
);
expect
(
findRows
(
)).
toHaveLength
(
1
);
});
});
});
});
});
});
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