-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from nabil-boag/master
Revert invalid input to previous valid value. Add live reload JS to i…
- Loading branch information
Showing
8 changed files
with
89 additions
and
24 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,24 +1,35 @@ | ||
Feature: Slider | ||
|
||
Scenario: Slider handle moves to correct position | ||
Given a slider width of 200px | ||
When I click the slider at 150px | ||
Then the handle should be at "75%" | ||
|
||
Scenario: Dragging the slider | ||
Given a slider width of 400px | ||
And a range of 0 to 200 | ||
And a slider that is set to 50 | ||
When I drag the slider to 300px | ||
Then the handle should be at "75%" | ||
|
||
Scenario: Customer types a value in the input box to update the slider | ||
Given a slider width of 200px | ||
And a range of 0 to 120 | ||
And a slider that is set to 60 | ||
When the input is changed to 30 | ||
Then the handle should be at "25%" | ||
|
||
Scenario: jQuery included on the page BEFORE angular | ||
Given a page with jQuery | ||
And a slider width of 400px | ||
And a range of 0 to 200 | ||
And a slider that is set to 50 | ||
When I drag the slider to 300px | ||
Then the handle should be at "75%" | ||
Then the handle should be at "75%" | ||
|
||
Scenario: Invalid input reverts to slider value | ||
Given a slider width of 200px | ||
And a range of 0 to 120 | ||
And a slider that is set to 60 | ||
When the input is changed to "some invalid text" | ||
Then the handle should be at "50%" |
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 |
---|---|---|
|
@@ -125,6 +125,6 @@ <h1>Test page</h1> | |
</div> | ||
|
||
<div></div> | ||
|
||
<script src="//localhost:35729/livereload.js"></script> | ||
</body> | ||
</html> |