A platform for community discussion. Free, open, simple.
DEV: Remove unnecessary `visit()` calls (#17536)
Jarek Radosz1c8d461ecc6e
diff --git a/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js b/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.jsindex d6512769d29..856f7c1ec18 100644--- a/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js+++ b/app/assets/javascripts/discourse/tests/acceptance/plugin-keyboard-shortcut-test.js@@ -13,9 +13,6 @@ acceptance("Plugin Keyboard Shortcuts - Logged In", function (needs) {needs.user();test("a plugin can add a keyboard shortcut", async function (assert) {- // Initialize the app (required in the legacy testing env)- await visit("/");-withPluginApi("0.8.38", (api) => {api.addKeyboardShortcut("]", () => {document.querySelector(@@ -36,9 +33,6 @@ acceptance("Plugin Keyboard Shortcuts - Logged In", function (needs) {acceptance("Plugin Keyboard Shortcuts - Anonymous", function () {test("a plugin can add a keyboard shortcut with an option", async function (assert) {- // Initialize the app (required in the legacy testing env)- await visit("/");-let spy = sinon.spy(KeyboardShortcuts, "_bindToPath");withPluginApi("0.8.38", (api) => {api.addKeyboardShortcut("]", () => {}, {