Skip to content

Commit

Permalink
adding failing test for #128
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Nov 30, 2014
1 parent f89b8a6 commit 1151004
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/acceptance/scenarios-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit 1151004

Please sign in to comment.