DEV: Remove unnecessary visit() calls (#17536)

This commit is contained in:
Jarek Radosz 2022-07-17 20:15:44 +02:00 committed by GitHub
parent c3f7a45821
commit 1c8d461ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("]", () => {}, {