Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] HTML Templates snapshots/markup #5093

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

zhpenkov
Copy link
Contributor

@zhpenkov zhpenkov commented Jun 28, 2024

related to: https://github.com/telerik/kendo-themes-private/issues/197

This PR adds the ability to access templates in the dev server.
And provides an automatic way to generate HTML and Snapshots for templates.

How to access templates on the dev server?

After navigating to http://localhost:3000/packages/html/dist/{component},
there are now two component subfolders to choose from:

templates - opens the templates of the component
tests - opens the tests of the component (as it was before)

Upon selecting a certain template/test of a component, it will be loaded on the page.

How are HTML outputs and Snaphots generated?

On push, a workflow is triggered that detects changes in the generated HTML and screenshots for the templates.
If a difference is present or a new file is created, the chore: update visual previews commits the differences/additions.

The generated HTML is held in the templates/ folder on a root level of the kendo-themes.
The generated screenshots are held in the templates/_output/{theme} folders (same structure as tests/).

@zhpenkov zhpenkov added the Test issues related to our visual / ci tests label Jun 28, 2024
@zhpenkov zhpenkov added this to the 2024 Q3 (Aug) milestone Jun 28, 2024
@zhpenkov zhpenkov self-assigned this Jun 28, 2024
@zhpenkov zhpenkov force-pushed the templates-snapshots branch 4 times, most recently from 4a9980e to 56e172f Compare June 28, 2024 11:52
@zhpenkov zhpenkov marked this pull request as ready for review June 28, 2024 14:07
@zhpenkov zhpenkov requested a review from a team as a code owner June 28, 2024 14:07
@zhpenkov zhpenkov force-pushed the templates-snapshots branch from da1d984 to 8732bc7 Compare June 28, 2024 14:41
@Juveniel Juveniel modified the milestones: 2024 Q3 (Aug), 2024 Q4 (Nov) Aug 19, 2024
@Juveniel Juveniel removed this from the 2024 Q4 (Nov) milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test issues related to our visual / ci tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants