Skip to content

Commit a388ebb

Browse files
committed
Test failure fixes
1 parent a8bfb16 commit a388ebb

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

app/assets/javascript/lexxy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5496,8 +5496,8 @@ class LexicalToolbarElement extends HTMLElement {
54965496
</svg>
54975497
</button>
54985498

5499-
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown" title="Color highlight">
5500-
<summary role="button" class="lexxy-editor__toolbar-button" name="highlight">
5499+
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown">
5500+
<summary role="button" class="lexxy-editor__toolbar-button" name="highlight" title="Color highlight">
55015501
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.65422 0.711575C7.1856 0.242951 6.42579 0.242951 5.95717 0.711575C5.48853 1.18021 5.48853 1.94 5.95717 2.40864L8.70864 5.16011L2.85422 11.0145C1.44834 12.4204 1.44833 14.6998 2.85422 16.1057L7.86011 21.1115C9.26599 22.5174 11.5454 22.5174 12.9513 21.1115L19.6542 14.4087C20.1228 13.94 20.1228 13.1802 19.6542 12.7115L11.8544 4.91171L11.2542 4.31158L7.65422 0.711575ZM4.55127 12.7115L10.4057 6.85716L17.1087 13.56H4.19981C4.19981 13.253 4.31696 12.9459 4.55127 12.7115ZM23.6057 20.76C23.6057 22.0856 22.5311 23.16 21.2057 23.16C19.8802 23.16 18.8057 22.0856 18.8057 20.76C18.8057 19.5408 19.8212 18.5339 20.918 17.4462C21.0135 17.3516 21.1096 17.2563 21.2057 17.16C21.3018 17.2563 21.398 17.3516 21.4935 17.4462C22.5903 18.5339 23.6057 19.5408 23.6057 20.76Z"/></svg>
55025502
</summary>
55035503
<lexxy-dropdown-highlight class="lexxy-editor__toolbar-dropdown-content">
@@ -5507,8 +5507,8 @@ class LexicalToolbarElement extends HTMLElement {
55075507
</lexxy-dropdown-highlight>
55085508
</details>
55095509

5510-
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown" title="Link">
5511-
<summary role="button" class="lexxy-editor__toolbar-button" name="link" data-hotkey="cmd+k ctrl+k">
5510+
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown">
5511+
<summary role="button" class="lexxy-editor__toolbar-button" name="link" title="Link" data-hotkey="cmd+k ctrl+k">
55125512
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.111 9.546a1.5 1.5 0 012.121 0 5.5 5.5 0 010 7.778l-2.828 2.828a5.5 5.5 0 01-7.778 0 5.498 5.498 0 010-7.777l2.828-2.83a1.5 1.5 0 01.355-.262 6.52 6.52 0 00.351 3.799l-1.413 1.414a2.499 2.499 0 000 3.535 2.499 2.499 0 003.535 0l2.83-2.828a2.5 2.5 0 000-3.536 1.5 1.5 0 010-2.121z"/><path d="M12.111 3.89a5.5 5.5 0 117.778 7.777l-2.828 2.829a1.496 1.496 0 01-.355.262 6.522 6.522 0 00-.351-3.8l1.413-1.412a2.5 2.5 0 10-3.536-3.535l-2.828 2.828a2.5 2.5 0 000 3.536 1.5 1.5 0 01-2.122 2.12 5.5 5.5 0 010-7.777l2.83-2.829z"/></svg>
55135513
</summary>
55145514
<lexxy-dropdown-link class="lexxy-editor__toolbar-dropdown-content">

app/assets/javascript/lexxy.js.br

122 Bytes
Binary file not shown.

app/assets/javascript/lexxy.js.gz

1 Byte
Binary file not shown.

app/assets/javascript/lexxy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
22 Bytes
Binary file not shown.
3 Bytes
Binary file not shown.

src/elements/toolbar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ export default class LexicalToolbarElement extends HTMLElement {
284284
</svg>
285285
</button>
286286
287-
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown" title="Color highlight">
288-
<summary role="button" class="lexxy-editor__toolbar-button" name="highlight">
287+
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown">
288+
<summary role="button" class="lexxy-editor__toolbar-button" name="highlight" title="Color highlight">
289289
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.65422 0.711575C7.1856 0.242951 6.42579 0.242951 5.95717 0.711575C5.48853 1.18021 5.48853 1.94 5.95717 2.40864L8.70864 5.16011L2.85422 11.0145C1.44834 12.4204 1.44833 14.6998 2.85422 16.1057L7.86011 21.1115C9.26599 22.5174 11.5454 22.5174 12.9513 21.1115L19.6542 14.4087C20.1228 13.94 20.1228 13.1802 19.6542 12.7115L11.8544 4.91171L11.2542 4.31158L7.65422 0.711575ZM4.55127 12.7115L10.4057 6.85716L17.1087 13.56H4.19981C4.19981 13.253 4.31696 12.9459 4.55127 12.7115ZM23.6057 20.76C23.6057 22.0856 22.5311 23.16 21.2057 23.16C19.8802 23.16 18.8057 22.0856 18.8057 20.76C18.8057 19.5408 19.8212 18.5339 20.918 17.4462C21.0135 17.3516 21.1096 17.2563 21.2057 17.16C21.3018 17.2563 21.398 17.3516 21.4935 17.4462C22.5903 18.5339 23.6057 19.5408 23.6057 20.76Z"/></svg>
290290
</summary>
291291
<lexxy-dropdown-highlight class="lexxy-editor__toolbar-dropdown-content">
@@ -295,8 +295,8 @@ export default class LexicalToolbarElement extends HTMLElement {
295295
</lexxy-dropdown-highlight>
296296
</details>
297297
298-
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown" title="Link">
299-
<summary role="button" class="lexxy-editor__toolbar-button" name="link" data-hotkey="cmd+k ctrl+k">
298+
<details class="lexxy-editor__toolbar-dropdown" name="lexxy-dropdown">
299+
<summary role="button" class="lexxy-editor__toolbar-button" name="link" title="Link" data-hotkey="cmd+k ctrl+k">
300300
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.111 9.546a1.5 1.5 0 012.121 0 5.5 5.5 0 010 7.778l-2.828 2.828a5.5 5.5 0 01-7.778 0 5.498 5.498 0 010-7.777l2.828-2.83a1.5 1.5 0 01.355-.262 6.52 6.52 0 00.351 3.799l-1.413 1.414a2.499 2.499 0 000 3.535 2.499 2.499 0 003.535 0l2.83-2.828a2.5 2.5 0 000-3.536 1.5 1.5 0 010-2.121z"/><path d="M12.111 3.89a5.5 5.5 0 117.778 7.777l-2.828 2.829a1.496 1.496 0 01-.355.262 6.522 6.522 0 00-.351-3.8l1.413-1.412a2.5 2.5 0 10-3.536-3.535l-2.828 2.828a2.5 2.5 0 000 3.536 1.5 1.5 0 01-2.122 2.12 5.5 5.5 0 010-7.777l2.83-2.829z"/></svg>
301301
</summary>
302302
<lexxy-dropdown-link class="lexxy-editor__toolbar-dropdown-content">

test/system/toolbar_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ class ToolbarTest < ApplicationSystemTestCase
135135
test "links" do
136136
find_editor.select("everyone")
137137

138-
click_on "Link"
138+
find("[name='link']").click
139139
fill_in "Enter a URL…", with: "https://37signals.com"
140140

141-
within ".lexxy-link-dialog" do
141+
within "lexxy-dropdown-link" do
142142
click_on "Link"
143143
end
144144

test/test_helpers/toolbar_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module ToolbarHelper
22
def apply_highlight_option(attribute, button_index)
3-
click_on "Color highlight"
3+
find("[name='highlight']").click
44

5-
within "lexxy-highlight-dialog dialog[open] [data-button-group='#{attribute}']" do
5+
within "lexxy-dropdown-highlight [data-button-group='#{attribute}']" do
66
all(".lexxy-highlight-button")[button_index - 1].click
77
end
88
end

0 commit comments

Comments
 (0)