#61240 closed enhancement (fixed)
Add e2e test for maintenance mode and other edge cases
| Reported by: | swissspidy | Owned by: | swissspidy |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
In https://core.trac.wordpress.org/ticket/61182#comment:9 I just reported a fatal error that is hard to discover in regular development, as it only happens in maintenance mode.
Maintenance mode also loads translations using wp_load_translations_early(), which is also tricky to test and had some bugs in the past too.
Similar situations exist in the fatal error handler class, or in wpdb when there is a connection issue.
It should be possible to write e2e tests for such scenarios, for example by placing a .maintenance file in the root or by temporarily changing the database credentials and things like that.
Change History (5)
This ticket was mentioned in PR #6624 on WordPress/wordpress-develop by @swissspidy.
2 years ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
@swissspidy commented on PR #6624:
2 years ago
#2
The fatal error handler doesn't seem to be working with the local Docker environment. It works when using something like localwp.com though, so not sure what's going on.
@desrosj This is a long shot, but perhaps you have an idea since you're familiar with the Docker env?
@swissspidy commented on PR #6624:
2 years ago
#4
Committed in https://core.trac.wordpress.org/changeset/58430
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
To-do:
Trac ticket: https://core.trac.wordpress.org/ticket/61240