Commit 8b11af5
committed
fix: md editor integ test F-key shortcut triggering pro upsell
F8 is bound to the Live Preview edit toggle (_handlePreviewBtnClick),
which calls LiveDevelopment.setMode(LIVE_EDIT_MODE) and shows the
UPSELL_TYPE_LIVE_EDIT dialog for free users. The F-key forwarding
tests dispatched F8 into the mdviewer iframe, which was then forwarded
to Phoenix's document-level F8 handler — stacking 2 upsell dialogs
in the test runner.
Swap to F9 (unbound) — the test only needs to verify that F-keys
are forwarded from the iframe, it doesn't need F8 specifically.
Also rename the outer describe to "livepreview:Markdown Editor 1" to
match sibling suites ("Edit Mode", "Edit More", "Table Editing").1 parent 6278f10 commit 8b11af5
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | | - | |
532 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
533 | 535 | | |
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
539 | | - | |
540 | | - | |
541 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
| |||
0 commit comments