Allow users to set where new fields must be created in a record page layout (#18420)
## Demo https://github.com/user-attachments/assets/eaf89d0c-96e0-4e49-ac58-290c8e7403ff
This commit is contained in:
committed by
GitHub
parent
d37ed7e07c
commit
a79b816117
+15
@@ -0,0 +1,15 @@
|
||||
import { getShortNestedFieldLabel } from '@/spreadsheet-import/utils/getShortNestedFieldLabel';
|
||||
|
||||
describe('getShortNestedFieldLabel', () => {
|
||||
it('should return everything after the first separator', () => {
|
||||
expect(getShortNestedFieldLabel('Address / City')).toBe('City');
|
||||
});
|
||||
|
||||
it('should return empty string when there is no separator', () => {
|
||||
expect(getShortNestedFieldLabel('Name')).toBe('');
|
||||
});
|
||||
|
||||
it('should preserve nested separators after the first one', () => {
|
||||
expect(getShortNestedFieldLabel('Address / City / Zip')).toBe('City / Zip');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user