Open SalihuDickson opened 5 days ago
Latest commit: e1c448794c062be21083f19bb2b6e381bace2efc
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
elixir-cloud-components | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 25, 2024 2:30pm |
This PR significantly refactors and expands the test suite for the ecc-utils-design form component. The changes focus on improving test organization, readability, and maintainability by introducing a new test structure and helper classes for handling different form field types.
classDiagram
class EccUtilsDesignForm {
+handleTusFileUpload(e: Event, field: Field): Promise<Record<string, string> | null>
+renderInputTemplate(field: Field, path: string): TemplateResult
+renderArrayTemplate(field: Field, path: string): TemplateResult
+renderGroupTemplate(field: Field, path: string): TemplateResult
+renderErrorTemplate(): TemplateResult
+renderSuccessTemplate(): TemplateResult
}
Change | Details | Files |
---|---|---|
Introduced new test helper classes for form field interactions |
|
packages/ecc-utils-design/src/internal/TestComponent.ts |
Restructured test organization by form field type |
|
packages/ecc-utils-design/src/components/form/tests/form.test.ts |
Enhanced form component data handling and validation |
|
packages/ecc-utils-design/src/components/form/form.ts |
Simplified test data and improved test identifiers |
|
packages/ecc-utils-design/src/components/form/tests/testData.ts packages/ecc-utils-design/src/components/form/tests/form.class.ts |
Description
This PR aims to simplify and expand tests for the ecc-utils design form, it also sets a standard for how the other tests for how tests for the other components will be written.
Summary by Sourcery
Expand and refactor tests for the ecc-utils design form to cover a wider range of input types and field options, and improve test component modularity.
Enhancements:
Tests:
Chores: