Open
Description
What's up?
In a CI environment I might want to run other tools against all (or some) of my fixtures. This might be something like visual regression tests or maybe some scripts written with Puppeteer to do smoke testing.
In those scenarios, I probably wouldn't care very much about the Cosmos UI itself, I'd just want to have statically built pages that I could use in other tools.
pages=$(cosmos-export --pages) # or some other flag, idk
# ./path/to/built/fixture.html
# ./path/to/other/built/fixture.html
for page in "${pages}"; do
./scripts/run-smoke-tests-on-page "${page}"
done
Mkay, tell me more...
This could potentially be extended by other tools out of the box:
cosmos-export --pages | cosmos-browser-visual-regressions
cosmos-export --pages | cosmos-etc