mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
More specific tests for command panel previews
This commit is contained in:
parent
51b7b50687
commit
bd9cbde54c
@ -133,6 +133,9 @@ describe "CommandPanel", ->
|
||||
runs ->
|
||||
expect(commandPanel).toBeVisible()
|
||||
expect(commandPanel.previewList).toBeVisible()
|
||||
previewItem = commandPanel.previewList.find("li:contains(dir/a)").view()
|
||||
expect(previewItem.path.text()).toBe "dir/a"
|
||||
expect(previewItem.preview.text()).toMatch /a+/
|
||||
|
||||
describe "if the command is malformed", ->
|
||||
it "adds and removes an error class to the command panel and does not close it", ->
|
||||
|
Loading…
Reference in New Issue
Block a user