From 1c8d461ecc6e731fcf4319ab2d3ed786fa295efc Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sun, 17 Jul 2022 20:15:44 +0200 Subject: [PATCH] DEV: Remove unnecessary `visit()` calls (#17536) --- .../tests/acceptance/plugin-keyboard-shortcut-test.js | 6 ------ 1 file changed, 6 deletions(-) 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.js index 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("]", () => {}, {