-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C-c C-b tf
: Toggle focus rocket for test.
- Loading branch information
Showing
4 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Feature: Toggle focus rocket | ||
|
||
Scenario: Focus test | ||
When I insert: | ||
""" | ||
buster.testCase('Building Page', { | ||
"contains title after loading page": function () { | ||
assert.match(document.body.innerHTML, "Zombie TDD"); | ||
} | ||
}); | ||
""" | ||
And I turn on buster-mode | ||
And I go to the front of the word "assert" | ||
And I press "C-c C-b tf" | ||
Then I should see "=> contains" | ||
|
||
Scenario: Blur test | ||
When I insert: | ||
""" | ||
buster.testCase('Building Page', { | ||
"=> contains title after loading page": function () { | ||
assert.match(document.body.innerHTML, "Zombie TDD"); | ||
} | ||
}); | ||
""" | ||
And I turn on buster-mode | ||
And I go to the front of the word "assert" | ||
And I press "C-c C-b tf" | ||
Then I should not see "=> contains" | ||
|
||
Scenario: Blur test even when user hasn't added a space at the end | ||
When I insert: | ||
""" | ||
buster.testCase('Building Page', { | ||
"=>contains title after loading page": function () { | ||
assert.match(document.body.innerHTML, "Zombie TDD"); | ||
} | ||
}); | ||
""" | ||
And I turn on buster-mode | ||
And I go to the front of the word "assert" | ||
And I press "C-c C-b tf" | ||
Then I should not see "=>contains" |