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
70266874
Commit
70266874
authored
Jan 11, 2022
by
Fernando Arias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test assertions for testing corpus refetch on delete
* Add test assertions
parent
3c907b53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ee/spec/frontend/security_configuration/corpus_management/corpus_management_spec.js
...configuration/corpus_management/corpus_management_spec.js
+11
-0
No files found.
ee/spec/frontend/security_configuration/corpus_management/corpus_management_spec.js
View file @
70266874
...
@@ -203,11 +203,22 @@ describe('EE - CorpusManagement', () => {
...
@@ -203,11 +203,22 @@ describe('EE - CorpusManagement', () => {
});
});
await
waitForPromises
();
await
waitForPromises
();
expect
(
getCorpusesQueryRequestHandler
).
toHaveBeenCalledTimes
(
1
);
const
corpusTable
=
wrapper
.
findComponent
(
CorpusTable
);
const
corpusTable
=
wrapper
.
findComponent
(
CorpusTable
);
corpusTable
.
vm
.
$emit
(
'
delete
'
,
mutationVars
.
input
.
id
);
corpusTable
.
vm
.
$emit
(
'
delete
'
,
mutationVars
.
input
.
id
);
await
waitForPromises
();
await
waitForPromises
();
expect
(
deleteCorpusMutationHandler
).
toHaveBeenCalledWith
(
mutationVars
);
expect
(
deleteCorpusMutationHandler
).
toHaveBeenCalledWith
(
mutationVars
);
expect
(
getCorpusesQueryRequestHandler
).
toHaveBeenCalledTimes
(
2
);
expect
(
getCorpusesQueryRequestHandler
).
toHaveBeenNthCalledWith
(
2
,
{
afterCursor
:
''
,
beforeCursor
:
''
,
firstPageSize
:
10
,
lastPageSize
:
null
,
projectPath
:
'
/namespace/project
'
,
});
});
});
});
});
});
});
...
...
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