#61240 closed enhancement (fixed)
Add e2e test for maintenance mode and other edge cases
Reported by: | swissspidy | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
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.
7 months ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
@swissspidy commented on PR #6624:
6 months 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?
#3
@
6 months ago
- Owner set to swissspidy
- Resolution set to fixed
- Status changed from assigned to closed
In 58430:
@swissspidy commented on PR #6624:
6 months ago
#4
Committed in https://core.trac.wordpress.org/changeset/58430
To-do:
Trac ticket: https://core.trac.wordpress.org/ticket/61240