Add BDD tests for article content validation and enable test workflow#263
Add BDD tests for article content validation and enable test workflow#263
Conversation
Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
…ation Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
…validation Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
|
@copilot I've spotted a problem, the tests in .github/workflows/on_pr_test.yaml are only set to run if certain paths are changed. I think removing the on.pull_request.paths item will allow the tests to run in this pr. We can refine and exclude things later if they are irrelevant. |
Co-authored-by: dannystaple <426859+dannystaple@users.noreply.github.com>
Fixed! Removed the |
🐳 Docker Base Image AvailableA new base Docker image has been built and pushed for this PR: Image: How to use this image:# Pull the image
docker pull ghcr.io/orionrobots/orionrobots-site.base:263
# Run with the image
docker run -it ghcr.io/orionrobots/orionrobots-site.base:263 bashFor local development:You can use this image as a base for testing changes without rebuilding dependencies. This comment is automatically updated when the base image is rebuilt. |

This PR adds comprehensive BDD tests for validating article content and layout, specifically targeting the article at
/2025/07/08/08-comparing-anker-power-packs.html, and fixes the GitHub Actions workflow to ensure the tests can run on pull requests.What's Added
BDD Test Suite:
tests/staging/features/article-content.featurewith two scenarios:Enhanced Step Definitions:
tests/staging/step_definitions/website_steps.jsWorkflow Fix:
pathsrestriction from.github/workflows/on_pr_test.yamlto allow BDD tests to run on all PRs instead of being limited to specific file pathsTest Coverage
The tests validate all requirements from the original issue:
/tags/robotics-at-home,/tags/raspberry-pi, etc.)<article>tag with valid src attributes (7 images found)Usage
Run the BDD tests using Docker:
docker compose run testThe tests use the existing Cucumber.js + Playwright framework and follow the same patterns as other tests in the repository.
Fixes #262.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.