Add TestDriver sample tests for the DreamOS production landing page - #13
Open
testdriverai[bot] wants to merge 1 commit into
Open
Add TestDriver sample tests for the DreamOS production landing page#13testdriverai[bot] wants to merge 1 commit into
testdriverai[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set up TestDriver + sample tests (closes #12)
This sets up TestDriver in the repo (
vitest+testdriverai, config, and the CI workflow viatestdriverai init) and adds a small suite of sample tests that run against the production environment.What's tested
Target:
https://dreamosofficial.github.io/DreamOS/(the live GitHub Pages site). DreamOS uses Nostr-based auth with a read-only Guest Dreamor mode, so no credentials or fixtures are required for the public surface — the sample tests exercise the deployed landing page:DreamOStitle, theDO IT ALL. ON DREAMOSslogan, and theLAUNCH DREAMOSCTA are visible.Full OS in Browser,Cherry AI Everywhere, andAccessibility Firstare shown.@dreamOS26social link are present.✅ 3/3 passing — full run report
While exploring I found that the
LAUNCH DREAMOSbutton leads to a GitHub Pages 404. It points athttps://dreamosofficial.github.io/DreamOS/src/, butsrc/only contains raw.jsxsource — no built SPA is published there, and GitHub Pages does not honor the_redirectsSPA fallback (that's a Cloudflare/Netlify feature). Thehttps://dream-os.pages.devorigin referenced insrc/auth/nostr.jscurrently serves an unrelated Polish-language app, not this DreamOS.Because of that, the interactive Feed / Discover / Cherry AI flows can't be driven against production yet, so this suite covers the landing page that is live. Once the built app is deployed, these tests can be extended to drive the guest/signed-in Dreamor experience.
Running in CI
The included
.github/workflows/testdriver.ymlruns these tests. The recommended way to authenticate in CI is thetestdriverai/actionwith GitHub OIDC — noTD_API_KEYsecret to store or rotate (one-time: authorize the TestDriver GitHub App for the org at https://console.testdriver.ai). A storedTD_API_KEYsecret is only needed as a fallback for runners without OIDC.