aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngScenario/dsl.js
diff options
context:
space:
mode:
authorStephane Bisson2012-11-14 12:33:54 +0800
committerPawel Kozlowski2012-12-01 20:05:42 +0100
commit15183f3e1fbee031c9595206163962788f98b298 (patch)
treeefe538b33086ba0550d19133e622315fcd441dc2 /src/ngScenario/dsl.js
parent2c405f417125c80c387a51baece8bf6e1e0c0a81 (diff)
downloadangular.js-15183f3e1fbee031c9595206163962788f98b298.tar.bz2
feat(e2eRunner): fail when an option to select does not exist
Diffstat (limited to 'src/ngScenario/dsl.js')
-rw-r--r--src/ngScenario/dsl.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ngScenario/dsl.js b/src/ngScenario/dsl.js
index f660c318..2f3ca18e 100644
--- a/src/ngScenario/dsl.js
+++ b/src/ngScenario/dsl.js
@@ -298,6 +298,8 @@ angular.scenario.dsl('select', function() {
option = select.find('option:contains("' + value + '")');
if (option.length) {
select.val(option.val());
+ } else {
+ return done("option '" + value + "' not found");
}
}
select.trigger('change');