Skip to content
Snippets Groups Projects

Resolve "Pydantic models for UI config."

Merged Lauri Himanen requested to merge 1257-pydantic-models-for-ui-config into develop
All threads resolved!
2 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -43,11 +43,11 @@ test.each([
['structural', 'rdf', 'Structural properties']
])('correctly renders %s card when card is enabled/disabled in config', async (card, state, label) => {
await startAPI(`tests.states.entry.${state}`, `tests/data/entry/${card}_card`)
const overview = cloneDeep(ui.entry.overview)
const cards = cloneDeep(ui.entry.cards)
for (const enabled of [true, false]) {
overview.exclude = enabled ? [] : [card]
cards.exclude = enabled ? [] : [card]
render(
<EntryContext entryId={'dft_bulk'} overview={overview}>
<EntryContext entryId={'dft_bulk'} cards={cards}>
<OverviewView/>
</EntryContext>
)
Loading