From 339d29e1b52ec39a69db036788513b89db3c5e01 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 10 Jan 2013 08:47:05 -0800 Subject: [PATCH] Search for something with fewer results Previously the search query used in the command panel spec returned 500+ matches when the specs needed far less to verify moving up and down and scrolling. This reduces the time take to run the command panel spec by ~2.5 seconds. --- src/packages/command-panel/spec/command-panel-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/command-panel/spec/command-panel-spec.coffee b/src/packages/command-panel/spec/command-panel-spec.coffee index 884d9abe5..609e1a335 100644 --- a/src/packages/command-panel/spec/command-panel-spec.coffee +++ b/src/packages/command-panel/spec/command-panel-spec.coffee @@ -375,7 +375,7 @@ describe "CommandPanel", -> beforeEach -> previewList = commandPanel.previewList rootView.trigger 'command-panel:toggle' - waitsForPromise -> commandPanel.execute('X x/a/') + waitsForPromise -> commandPanel.execute('X x/sort/') describe "when move-down and move-up are triggered on the preview list", -> it "selects the next/previous operation (if there is one), and scrolls the list if needed", ->