Show More
@@ -47,14 +47,22 b' casper.notebook_test(function () {' | |||||
47 | this.evaluate(function(){ |
|
47 | this.evaluate(function(){ | |
48 | $('#keyboard_shortcuts a').click(); |
|
48 | $('#keyboard_shortcuts a').click(); | |
49 | }, {}); |
|
49 | }, {}); | |
|
50 | }); | |||
|
51 | // Wait for the dialog to fade in completely. | |||
|
52 | this.wait(1000); | |||
|
53 | this.then(function () { | |||
50 |
|
54 | |||
51 | this.trigger_keydown('k'); |
|
55 | this.trigger_keydown('k'); | |
52 | this.validate_notebook_state('k in command mode while keyboard help is up', 'command', 3); |
|
56 | this.validate_notebook_state('k in command mode while keyboard help is up', 'command', 3); | |
53 |
|
57 | |||
54 | // Close keyboard help |
|
58 | // Close keyboard help | |
55 | this.evaluate(function(){ |
|
59 | this.evaluate(function(){ | |
56 |
$('div.modal button. |
|
60 | $('div.modal-footer button.btn-default').click(); | |
57 | }, {}); |
|
61 | }, {}); | |
|
62 | }); | |||
|
63 | // Wait for the dialog to fade out completely. | |||
|
64 | this.wait(1000); | |||
|
65 | this.then(function () { | |||
58 |
|
66 | |||
59 | this.trigger_keydown('k'); |
|
67 | this.trigger_keydown('k'); | |
60 | this.validate_notebook_state('k in command mode', 'command', 2); |
|
68 | this.validate_notebook_state('k in command mode', 'command', 2); |
General Comments 0
You need to be logged in to leave comments.
Login now