Repository navigation
Commit 96db8f0
authored
Stabilize WordPress E2E tests (#459)
## What changed
This PR removes two sources of flakiness from the WordPress E2E test
environment. Both changes are confined to test code and configuration;
they do not affect the distributed plugin.
- **Query Monitor activation:** Reload the plugins screen after
activation so Query Monitor is loaded from the beginning of the request
before its admin-bar output is inspected.
- **Runtime configuration changes:** Disable the PHP OPcache
revalidation delay so changes that E2E tests make to `wp-config.php`
become visible immediately.
## Why
The activation response is generated by a request that began before
Query Monitor was active, so its interface is not guaranteed to exist on
that page. Separately, OPcache can continue executing a cached
`wp-config.php` after a test changes it. These timing differences make
otherwise valid E2E assertions depend on request and cache state.1 parent 095da59 commit 96db8f0
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
0 commit comments