From 15183f3e1fbee031c9595206163962788f98b298 Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Wed, 14 Nov 2012 12:33:54 +0800 Subject: feat(e2eRunner): fail when an option to select does not exist --- test/ngScenario/dslSpec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/ngScenario/dslSpec.js b/test/ngScenario/dslSpec.js index 4a4b17bc..2db2771c 100644 --- a/test/ngScenario/dslSpec.js +++ b/test/ngScenario/dslSpec.js @@ -269,6 +269,17 @@ describe("angular.scenario.dsl", function() { $root.dsl.select('test').options('A', 'B'); expect($root.futureError).toMatch(/did not match/); }); + + it('should fail to select an option that does not exist', function(){ + doc.append( + '' + ); + $root.dsl.select('test').option('three'); + expect($root.futureError).toMatch(/not found/); + }); }); describe('Element', function() { -- cgit v1.2.3