Commit 3b909ac
Connectors: Stop e2e capability restriction from leaking across specs (#77857)
* fix cap restriction leak in connectors test plugin
Skip map_meta_cap during /wp/v2/plugins REST requests so the
e2e cleanup never gets blocked by a leaked restriction, and
clear the option on activation as a safety net.
* simplify rationale comment
* clear connectors capability restriction in e2e cleanup
Reset the test restriction option before deactivating the helper plugin so cleanup does not leak blocked plugin capabilities across specs.
Made-with: Cursor
* update connectors capability e2e fixtures
Use controlled connector fixtures for capability assertions so the tests do not depend on the current state of built-in AI providers.
Made-with: Cursor1 parent 6836882 commit 3b909ac
2 files changed
Lines changed: 83 additions & 13 deletions
File tree
- packages/e2e-tests/plugins
- test/e2e/specs/admin
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
32 | 78 | | |
33 | 79 | | |
34 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
460 | 479 | | |
461 | 480 | | |
462 | 481 | | |
463 | 482 | | |
464 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
465 | 488 | | |
| 489 | + | |
466 | 490 | | |
467 | 491 | | |
468 | 492 | | |
| |||
477 | 501 | | |
478 | 502 | | |
479 | 503 | | |
480 | | - | |
| 504 | + | |
481 | 505 | | |
482 | 506 | | |
483 | 507 | | |
| |||
495 | 519 | | |
496 | 520 | | |
497 | 521 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
504 | 526 | | |
505 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
506 | 531 | | |
507 | 532 | | |
508 | 533 | | |
509 | 534 | | |
510 | | - | |
| 535 | + | |
511 | 536 | | |
512 | 537 | | |
513 | 538 | | |
514 | | - | |
515 | 539 | | |
516 | 540 | | |
517 | 541 | | |
| |||
0 commit comments