进行了一些小修复

This commit is contained in:
2026-08-26 17:32:26 +08:00
parent bfc16de962
commit 1f84e6aa18
3 changed files with 11 additions and 3 deletions
@@ -65,6 +65,9 @@ test('front submit image and visibility actions live in the TinyMCE toolbar', ()
assert.match(editor, /type:\s*'menubutton'/);
assert.match(editor, /data-editor-media-tab="upload"/);
assert.match(editor, /data-editor-media-tab="external"/);
assert.match(editor, /class="aksrt-editor-media__dialog" tabindex="-1"/);
assert.match(editor, /querySelector\('\.aksrt-editor-media__dialog'\)/);
assert.doesNotMatch(editor, /focusTarget\s*=\s*root\.querySelector\('\[data-editor-media-tab\]\.is-active'\)/);
assert.match(editor, /\(cfg\.uploads \|\| \{\}\)\.image/);
assert.match(page, /'canUploadImage'\s*=>\s*!empty\(\$ctx\['can_upload_img'\]\)/);
assert.doesNotMatch(main, /newposts-editor-tools|data-insert-shortcode|data-insert-upload-image/);