Altinn / app-localtest

Solution for testing apps locally on your own machine
8 stars 14 forks source link

Forhåndsvisning/testing av presentasjonsfelter i Localtest #3

Open rvessb opened 2 years ago

rvessb commented 2 years ago

What needs to be solved?

Det er behov for funksjonalitet for forhåndsvisning/testing av presentasjonsfelter (som beskrevet her: https://docs.altinn.studio/nb/app/development/configuration/messagebox/presentationfields/) i Lokaltest.

How do you want it solved?

Få på plass en fungerende innboks på testbrukerne som ligger i lokaltest.

Alternative solutions

En eller annen måte i lokaltest å teste at presentasjonsfeltene oppfører seg slik man har "konfigurert" de.

Additional context

rvessb commented 2 years ago

org/ssb

ivarne commented 1 year ago

One solution that would be less work than an inbox for localtest would be to extend the InstancePicker that lets users select an existing instance to show PresnetationValues

// applicationmetadata.json
"onEntry": {
    "show": "select-instance"
}

That would require a new app nuget version for the relevant apps that includes presentationValues on SimpleInstance that is returned from {org}/{app}/instances/{instanceOwnerPartyId:int}/active and some frontend changes to actually read and display those values (if they exist.)

This change probably makes sense in a general context as well, because users also wants to see presentationValues when picking an existing instance.