Skip to content

Add isolated Behat tests for login and content workflows - #646

Open
pythonyx135793 wants to merge 3 commits into
quantacms:masterfrom
pythonyx135793:codex/behat-behaviors-r596
Open

pythonyx135793 wants to merge 3 commits into
quantacms:masterfrom
pythonyx135793:codex/behat-behaviors-r596

Conversation

@pythonyx135793

@pythonyx135793 pythonyx135793 commented Oct 24, 2026 •

Copy link
Copy Markdown

Fixes #149.

Adds Composer-installed Behat with nine scenarios for page rendering, the login form, normal password login, wrong credentials, logout, node creation/editing and denied anonymous creation. Requests go through Quanta's real HTTP actions and session cookies; assertions check rendered content and persisted JSON, including the node author and login timestamp.

The suite creates a disposable local site and starts its own Apache process. The Docker setup disables Composer install scripts/plugins and runs the tests without external networking. Setup, commands and coverage are documented in tests/behat/README.md.

Linux results: 9 scenarios / 34 steps pass with PHP 8.5.12 and Apache 2.4.69. A separate failure control confirms that an assertion failure returns exit 1, removes the fixture and closes the test server.

This uses synthetic site data with Symfony BrowserKit's HTTP/DOM/cookie emulation. It does not execute JavaScript or cover every application feature. Production source is unchanged; existing PHP 8.5 warnings remain visible in the logs.

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