Repository navigation
Add isolated Behat tests for login and content workflows - #646
Open
pythonyx135793 wants to merge 3 commits into
Open
pythonyx135793 wants to merge 3 commits into
pythonyx135793 wants to merge 3 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.