Skip to content
Snippets Groups Projects
Commit bc2ef5a7 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-11169 : Properties overview in the new admin UI - fix test

parent 8c57d3c5
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ async function testLoadWithSearchText(resultsFound) { ...@@ -55,6 +55,7 @@ async function testLoadWithSearchText(resultsFound) {
openbis.mockSearchPropertyTypes( openbis.mockSearchPropertyTypes(
resultsFound ? [testPropertyType, anotherPropertyType] : [] resultsFound ? [testPropertyType, anotherPropertyType] : []
) )
openbis.mockSearchPropertyAssignments([])
const form = await common.mount({ searchText: 'test' }) const form = await common.mount({ searchText: 'test' })
...@@ -255,12 +256,8 @@ async function testLoadWithSearchText(resultsFound) { ...@@ -255,12 +256,8 @@ async function testLoadWithSearchText(resultsFound) {
label: 'XSLT Script' label: 'XSLT Script'
}, },
{ {
name: 'metaData', name: 'usages',
label: 'Meta Data' label: 'Usages'
},
{
name: 'internal',
label: 'Internal'
} }
], ],
rows: [ rows: [
......
...@@ -101,6 +101,12 @@ const mockSearchPropertyTypes = propertyTypes => { ...@@ -101,6 +101,12 @@ const mockSearchPropertyTypes = propertyTypes => {
searchPropertyTypes.mockReturnValue(Promise.resolve(searchResult)) searchPropertyTypes.mockReturnValue(Promise.resolve(searchResult))
} }
const mockSearchPropertyAssignments = propertyAssignments => {
const searchResult = new dto.SearchResult()
searchResult.setObjects(propertyAssignments)
searchPropertyAssignments.mockReturnValue(Promise.resolve(searchResult))
}
const mockSearchVocabularies = vocabularies => { const mockSearchVocabularies = vocabularies => {
const searchResult = new dto.SearchResult() const searchResult = new dto.SearchResult()
searchResult.setObjects(vocabularies) searchResult.setObjects(vocabularies)
...@@ -177,6 +183,7 @@ export default { ...@@ -177,6 +183,7 @@ export default {
mockSearchPersons, mockSearchPersons,
mockSearchSampleTypes, mockSearchSampleTypes,
mockSearchPropertyTypes, mockSearchPropertyTypes,
mockSearchPropertyAssignments,
mockSearchVocabularies, mockSearchVocabularies,
mockSearchPlugins, mockSearchPlugins,
mockSearchQueries, mockSearchQueries,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment