Increase test coverage for /modules/ui (#3314)

* Increase test coverage for `/modules/ui`

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com>

* Merge main

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com>

* Fix tests

* Fix tests

* Fix

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
Co-authored-by: Fellipe Montes <102544529+FellipeMTX@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
gitstart-twenty
2024-01-11 08:51:36 +01:00
committed by GitHub
parent f34516d422
commit ebe8698910
48 changed files with 1652 additions and 55 deletions

View File

@ -24,7 +24,7 @@ export const SettingsObjectFieldCurrencyForm = ({
fullWidth
disabled={disabled}
label="Unit"
dropdownScopeId="currency-unit-select"
dropdownId="currency-unit-select"
value={values.currencyCode}
options={Object.entries(settingsFieldCurrencyCodes).map(
([value, { label, Icon }]) => ({

View File

@ -70,7 +70,7 @@ export const SettingsObjectFieldRelationForm = ({
<StyledSelectsContainer>
<Select
label="Relation type"
dropdownScopeId="relation-type-select"
dropdownId="relation-type-select"
fullWidth
disabled={disableRelationEdition}
value={values.type}
@ -85,7 +85,7 @@ export const SettingsObjectFieldRelationForm = ({
/>
<Select
label="Object destination"
dropdownScopeId="object-destination-select"
dropdownId="object-destination-select"
fullWidth
disabled={disableRelationEdition}
value={values.objectMetadataId}

View File

@ -87,7 +87,7 @@ export const SettingsObjectFieldTypeSelectSection = ({
<Select
fullWidth
disabled={!!fieldMetadata?.id}
dropdownScopeId="object-field-type-select"
dropdownId="object-field-type-select"
value={values?.type}
onChange={(value) => onChange({ type: value })}
options={fieldTypeOptions}