Open userquin opened 4 months ago
Name | Link |
---|---|
Latest commit | a6d7fe7d96b4ad63d50e0b64975d51c4870d6ccf |
Latest deploy log | https://app.netlify.com/sites/tresjs-docs/deploys/665e335f6f19cc0008e33f65 |
Deploy Preview | https://deploy-preview-715--tresjs-docs.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Once the browser finish running the tests, run the TresCanvas test to see the UI:
e2e tests would be a big help. Looking forward to this.
@andretchen0 we need to cover e2e tests, we have some internal team discussion about it, stay tuned
Here a repository with advanced manual and on demand examples in the playground: https://github.com/userquin/tresjs-vitest-browser-tests
Can also run in StackBlitz, link in the readme file.
This is just a test using Vitest beta v2.0 packages to run the new added test in the browser:
src/components/TresCanvas.test.ts
cloned from my previous branch (https://github.com/Tresjs/tres/blob/userquin/feat-vitest-browser/src/components/TresCanvas.test.ts).To run the browser test:
pnpm install && pnpm build
from root folderpnpm test:browser:none
from rootWe can also use webdriverio or playwright, you need to add the corresponding dependencies as dev dependencies and run:
pnpm test:browser:webdriverio
from root orpnpm test:browser:playwright
from rootThis PR using vitest packages from local tgz from this PR: https://github.com/vitest-dev/vitest/pull/5815
✔️ DONE: Once we released a new beta version we can use vitest from npm registry.
For CI, we need to include webdriverio or playwright and configure headless to true.