SilasBerger / teaching-website

My teaching website 👨‍🏫
https://teach.silasberger.ch
1 stars 0 forks source link

Add basic Cypress tests #7

Open SilasBerger opened 8 months ago

SilasBerger commented 8 months ago

Consider adding some basic smoke test-style e2e tests for each site, which:

Add checks to pipeline (possibly only for main).

lebalz commented 8 months ago

is the purpose to find broken links? maybe you could use the docusaurus infra for this:

SilasBerger commented 8 months ago

is the purpose to find broken links? maybe you could use the docusaurus infra for this:

It's mainly about a "can we still successfully open a docs page" sort of sanity check. I'm also thinking about extending this idea to a more thorough check on the component gallery to see if no generated components (e.g. from directives) went bust.

lebalz commented 8 months ago

I'm afraid i still not getting it 100% 😅 Is the focus to check internal doc links or external ones aswell? Doesn't docusaurus fails to build, when internal links are not routeable? (At least when their Link Component is used, it shall be checked...)