Add automated tests for Go module redirect HTML files
Plan to create tests for redirect HTML files in the helm-www repository:
- [x] Create test suite for redirect HTML files (static/helm/index.html, static/helm/v2/index.html, static/helm/v3/index.html, static/helm/v4/index.html)
- [x] Add test framework dependencies (Jest)
- [x] Write tests to validate:
- HTML structure and metadata tags (go-import, go-source)
- Meta refresh redirects to GitHub
- Correct repository URLs and branches for each version
- [x] Add test script to package.json
- [x] Create GitHub Actions workflow for running tests on pull requests (Node 20 from netlify.toml)
- [x] Integrate tests into the Makefile build target
- [x] Verify all tests pass
- [x] Address code review feedback
- [x] Resolve yarn.lock conflicts with main branch
Original prompt
This section details on the original issue you should resolve
<issue_title>Create tests for redirects</issue_title> <issue_description>Create tests for redirects
static/helm/index.html static/helm/v2/index.html static/helm/v4/index.html static/helm/v3/index.html
- Create a github/workflow for it that runs on pull requests. It should run on node version specified in netlify.toml
- Run tests when the
make buildtarget is run</issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes helm/helm-www#1869
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
@copilot resolve the yarn.lock conflicts
@copilot resolve the yarn.lock conflicts
Resolved yarn.lock conflicts by merging main branch and regenerating the lockfile. All tests pass. Commit: 8c4467e
https://gh.io/copilot-coding-agent-docs resolve the conflicts