-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(frontend): Various bugs with fields.
- Loading branch information
1 parent
c860660
commit f6bf556
Showing
8 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
frontend_src/vstutils/fields/text/__tests__/phone-field.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { expect, test, describe } from '@jest/globals'; | ||
import { createApp, createSchema, mount } from '@/unittests'; | ||
|
||
describe('PhoneField', () => { | ||
test('country code selector is rendered', async () => { | ||
const app = await createApp({ | ||
schema: createSchema(), | ||
}); | ||
|
||
const phoneField = app.fieldsResolver.resolveField({ | ||
name: 'phone', | ||
type: 'string', | ||
format: 'phone', | ||
}); | ||
|
||
const wrapper = mount({ | ||
template: '<PhoneField :field="field" :data="{}" type="edit" />', | ||
components: { | ||
PhoneField: phoneField.getComponent(), | ||
}, | ||
setup() { | ||
return { | ||
field: phoneField, | ||
}; | ||
}, | ||
}); | ||
|
||
expect(wrapper.find('select').exists()).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# pylint: disable=django-not-available | ||
__version__: str = '5.8.17' | ||
__version__: str = '5.8.18' |