From 1151004d941eec48d7e4939ab0e4d8cb218f4fde Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Sun, 30 Nov 2014 17:24:46 -0500 Subject: [PATCH] adding failing test for #128 --- tests/acceptance/scenarios-test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/scenarios-test.js b/tests/acceptance/scenarios-test.js index ad30c57b..7ad79a20 100644 --- a/tests/acceptance/scenarios-test.js +++ b/tests/acceptance/scenarios-test.js @@ -28,11 +28,18 @@ test('nested liquid-outlets wait for their ancestors to animate', function() { }); test('modal with remapped parameters receives them', function() { + expect(2); visit('/scenarios/remapped-modal'); andThen(function(){ click('a:contains(Go)'); }); andThen(function(){ - find('.lf-dialog:contains(Hi Tomstah)'); + console.log("finding with assert"); + findWithAssert('.lf-dialog:contains(Hi Tomster)'); + ok(true); + click('button:contains(Thanks)'); + }); + andThen(function(){ + equal(find('.lf-dialog').length, 0, "expected dialog to be dismissed"); }); });