-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change when plugin fieldset is hidden in registration variables table #5113
Change when plugin fieldset is hidden in registration variables table #5113
Conversation
…les table Previously, the plugin fieldset was only shown when multiple configured backends introduced registration variables. This led to confusion when there were multiple backends configured, but only ONE of them introduced registration variables. In this case, the registration variables would not be grouped by their plugin name, and it was not clear to which backend they belonged. Now, the fieldset will only be hidden if there is only ONE configured backend, OR if all the configured backends are of the same type (meaning they introduce the same registration variables).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5113 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 774 774
Lines 26657 26657
Branches 3468 3468
=======================================
Hits 25787 25787
Misses 608 608
Partials 262 262 ☔ View full report in Codecov by Sentry. |
8c1cff5
to
436ab3d
Compare
@@ -369,11 +369,11 @@ export const WithObjectsAPIRegistrationBackends = { | |||
await userEvent.click(registrationTab); | |||
|
|||
const pdfUrl = canvas.getByRole('cell', {name: 'pdf_url'}); | |||
expect(pdfUrl).toBeVisible(); | |||
await expect(pdfUrl).toBeVisible(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect
is always sync - possibly you need await canvas.findByRole('cell', {name: 'pdf_url'});
on the line above if there's flakiness due to async stuff happening
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have gotten used to adding an await
before expect
calls because my IDE complains about it
src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js
Outdated
Show resolved
Hide resolved
src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js
Outdated
Show resolved
Hide resolved
src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js
Outdated
Show resolved
Hide resolved
436ab3d
to
1bb5d45
Compare
Closes #4990
Changes
In the registration variables table, the plugin fieldset is now only hidden if there is only one configured backend, or if all the configured backends are of the same type.
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Dockerfile/scripts
./bin
folderCommit hygiene