diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/scenario/dsl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js index 7974f4ad..28e05724 100644 --- a/src/scenario/dsl.js +++ b/src/scenario/dsl.js @@ -156,7 +156,9 @@ angular.scenario.dsl('using', function() { */ angular.scenario.dsl('binding', function() { function contains(text, value) { - return text && text.indexOf(value) >= 0; + return value instanceof RegExp ? + value.test(text) : + text && text.indexOf(value) >= 0; } return function(name) { return this.addFutureAction("select binding '" + name + "'", function($window, $document, done) { |
