Skip to content

Add isolated Behat CMS and Chromium smoke tests - #647

Open
DarvinX wants to merge 16 commits into
quantacms:masterfrom
DarvinX:codex/behat-browser-tests
Open

DarvinX wants to merge 16 commits into
quantacms:masterfrom
DarvinX:codex/behat-browser-tests

Conversation

@DarvinX

@DarvinX DarvinX commented Oct 28, 2026

Copy link
Copy Markdown

Fixes #149.

Adds Composer-managed Behat tests for installation, page/Qtag rendering, authentication, logout, node persistence and scenario isolation. Nine HTTP scenarios exercise the shipped CMS classes and entrypoint; an optional Chromium/Selenium profile verifies the JavaScript redirect for missing pages.

Each scenario starts with a Doctor-installed temporary site and cache. The harness stops its private server, releases WebDriver sessions, and removes its fixtures (including PHP sessions) without following links into the checkout. Authentication uses the UI's POST path. Docker commands, CI and a short contributor guide make both profiles reproducible.

Validation, entirely inside Docker:

  • Default suite: 9 scenarios and 31 steps passed, including the documented image command with external networking disabled.
  • Chromium profile: 1 scenario and 3 steps passed through the supplied private-network Compose setup; repeated execution also passed.
  • New PHP files pass PSR-12; existing logger suite: 53 passed.
  • Composer manifest valid, with the repository's existing license/Jodit constraint warnings.

AI-assisted implementation, reviewed and tested before submission.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup automated testing - BEHAT

1 participant