-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add E2E Test of the live preview feature by Playwright #131
Conversation
Thanks! This is a good idea. I'll try to find someone with access to the repository secrets (I don't either... maybe @miya0001 ?) I'll have to check about whose (what?) Mapbox account we should use to create the Mapbox key as well... |
@yuiseki I've added the mapbox token as |
Currently I change the status of this pull request to draft because fix and check mapbox secret. |
@yuiseki You need merge main branch. |
This pull request is ready for review 🙏 |
- run: npx playwright install --with-deps chromium | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
- run: npm run build | ||
- run: chmod 777 dist/cli.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering why I need to chmod 777 dist/cli.js
before running dist/cli.js
.
If I don't do this, I get a permission error.
It's might be a bug, but I believe that should be clearly describe and fix in another issue/pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript won't set execute permissions. I believe npm will set execute permissions to the files in the "bin" section when running npm package (or maybe npm install?). Here we can do chmod +x dist/cli.js
or run it via node like node dist/cli.js
. I don't think it's a big problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
- run: npx playwright install --with-deps chromium | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
- run: npm run build | ||
- run: chmod 777 dist/cli.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript won't set execute permissions. I believe npm will set execute permissions to the files in the "bin" section when running npm package (or maybe npm install?). Here we can do chmod +x dist/cli.js
or run it via node like node dist/cli.js
. I don't think it's a big problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuiseki
Thank you! I confirmed that npm run test:e2e
works correctly.
Description
Resolve: #132
Blocked by: #129actions/cache
in GitHub ActionsRight now, the live preview with mapbox is broken in the latest main branch, so the test is failing as intended!IMPORTANT NOTEMAPBOX_ACCESS_TOKEN
Environment secrets
on the repository settingsType of Pull Request
Verify the followings
main
branchnpm run build
npm run lint
charites help
globallyRefer to CONTRIBUTING.MD for more details.
Screenshots