international-labour-organization / designsystem

A design system for the International Labour Organization
Apache License 2.0
1 stars 3 forks source link

Add tests for Twig components #455

Closed justintemps closed 3 months ago

justintemps commented 1 year ago

Create basic rendering tests for all components in the Twig package

Evidently it's not possible to test the Forms right now because Drupal can't use our Form components directly (yet?)

bashlk commented 6 months ago

@ademarco Can you please elaborate on how we proceed on this in terms of having a simple Drupal server that we can spin to render the twig components on which we can run the frontend tests on? (Context: https://github.com/international-labour-organization/designsystem/pull/679#issuecomment-1818778810)

bashlk commented 5 months ago

Created #947 for the initial test setup. The actual implementation of the tests for the twig components should also be split into several issues and completed in stages.

justintemps commented 3 months ago

Hey @Shashika6 good work here but seems like we're still missing tests for media and forms, right?

Shashika6 commented 3 months ago

Yes @justintemps, the forms components are not exposed in the pattern. I created an issue about it as well.

About the media one,I'll create tests for it.