[wp-trac] [WordPress Trac] #61240: Add e2e test for maintenance mode and other edge cases

WordPress Trac noreply at wordpress.org
Fri May 17 12:05:22 UTC 2024


#61240: Add e2e test for maintenance mode and other edge cases
------------------------------+-------------------------
 Reporter:  swissspidy        |      Owner:  (none)
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  6.6
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61240>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list