From 4fec828cf6ce896452945c1dd8aa2db61e2bc746 Mon Sep 17 00:00:00 2001 From: Andres Ornelas Date: Tue, 25 May 2010 09:52:52 -0700 Subject: appended lastDocument to the document.body --- test/scenario/DSLSpec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/scenario/DSLSpec.js b/test/scenario/DSLSpec.js index 3c16876d..bed1f008 100644 --- a/test/scenario/DSLSpec.js +++ b/test/scenario/DSLSpec.js @@ -11,6 +11,7 @@ describe("DSL", function() { }; executeStep = function(step, html, callback) { lastDocument =_jQuery('
' + html + '
'); + _jQuery(document.body).append(lastDocument); var specThis = { testWindow: window, testDocument: lastDocument @@ -32,8 +33,10 @@ describe("DSL", function() { it('should select', function() { input('gender').select('female'); expect(lastStep.name).toEqual("Select radio 'gender' to 'female'"); - executeStep(lastStep, '' + + executeStep(lastStep, + '' + ''); + expect(lastDocument.find(':radio:checked').length).toEqual(1); expect(lastDocument.find(':radio:checked').val()).toEqual('female'); }); }); -- cgit v1.2.3