FIX: Title for keyboard shortcuts button in sidebar (#17638)
This commit is contained in:
parent
07424b9bb6
commit
1dff3ad79d
|
@ -15,7 +15,7 @@
|
|||
<div class="sidebar-footer-actions">
|
||||
<DButton
|
||||
@action={{route-action "showKeyboardShortcutsHelp"}}
|
||||
@title={{i18n "keyboard_shortcuts_help.title"}}
|
||||
@title="keyboard_shortcuts_help.title"
|
||||
@icon="keyboard"
|
||||
@class="sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts" />
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import I18n from "I18n";
|
||||
|
||||
import { test } from "qunit";
|
||||
import { click, currentRouteName, visit } from "@ember/test-helpers";
|
||||
import {
|
||||
|
@ -48,7 +50,11 @@ acceptance("Sidebar - User with sidebar enabled", function (needs) {
|
|||
|
||||
test("viewing keyboard shortcuts using sidebar", async function (assert) {
|
||||
await visit("/");
|
||||
await click(".sidebar-footer-actions-keyboard-shortcuts");
|
||||
await click(
|
||||
`.sidebar-footer-actions-keyboard-shortcuts[title="${I18n.t(
|
||||
"keyboard_shortcuts_help.title"
|
||||
)}"]`
|
||||
);
|
||||
|
||||
assert.ok(
|
||||
exists("#keyboard-shortcuts-help"),
|
||||
|
|
Loading…
Reference in New Issue