summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-08-18 17:04:05 +0800
committerGitHub <noreply@github.com>2017-08-18 17:04:05 +0800
commit9097289c2ce2b719a5aa0f9d567594f2b6a7e30b (patch)
treec8fb16e11052489047157738ee454dafc8c37d04 /api
parent96eab1202717e073782ec399a4e0820cae15b1bb (diff)
downloadchat-9097289c2ce2b719a5aa0f9d567594f2b6a7e30b.tar.gz
chat-9097289c2ce2b719a5aa0f9d567594f2b6a7e30b.tar.bz2
chat-9097289c2ce2b719a5aa0f9d567594f2b6a7e30b.zip
[PLT-3377] Open up a shortcuts dialog instead of printing help text (#7064)
* open up a shortcuts dialog instead of printing help text * Updating UI for keyboard shortcuts modal * update PR per PLT-7284 * fix typo error * fix mixed up shortcut keys * move to client side * fix shortcuts list, remove unused function and revert server side code for autocompletion * remove quick team switcher
Diffstat (limited to 'api')
-rw-r--r--api/command_shortcuts_test.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/api/command_shortcuts_test.go b/api/command_shortcuts_test.go
index ce5019049..287223ec3 100644
--- a/api/command_shortcuts_test.go
+++ b/api/command_shortcuts_test.go
@@ -4,23 +4,10 @@
package api
import (
- "github.com/mattermost/platform/model"
- "strings"
"testing"
)
func TestShortcutsCommand(t *testing.T) {
th := Setup().InitBasic()
- Client := th.BasicClient
- channel := th.BasicChannel
-
- rs := Client.Must(Client.Command(channel.Id, "/shortcuts ")).Data.(*model.CommandResponse)
- if !strings.Contains(rs.Text, "CTRL") {
- t.Fatal("failed to display shortcuts")
- }
-
- rs = Client.Must(Client.Command(channel.Id, "/shortcuts mac")).Data.(*model.CommandResponse)
- if !strings.Contains(rs.Text, "CMD") {
- t.Fatal("failed to display Mac shortcuts")
- }
+ th.BasicClient.Must(th.BasicClient.Command(th.BasicChannel.Id, "/shortcuts"))
}