From 896450420ddf781a592c8594ffab067749428310 Mon Sep 17 00:00:00 2001 From: Michael Kurze Date: Thu, 9 Jul 2015 13:11:54 +0200 Subject: [PATCH] (#5) Fixed specs to work on angular 1.4.x (as well as 1.3.x) --- CHANGELOG.md | 11 +++++++---- spec/ax-messages-widget.spec.js | 10 +++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3020de6..7af86a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,16 @@ ## Last Changes +- [#5](https://github.com/LaxarJS/ax-messages-widget/issues/5): Fixed specs to work on angular 1.4.x (as well as 1.3.x) + + ## v3.0.0 -- [#4](https://github.com/LaxarJS/ax-messages-display-widget/issues/4): Updated to LaxarJS 1.0.0 and updated contribution information +- [#4](https://github.com/LaxarJS/ax-messages-widget/issues/4): Updated to LaxarJS 1.0.0 and updated contribution information + **BREAKING CHANGE:** see ticket for details -- [#3](https://github.com/LaxarJS/ax-messages-display-widget/issues/3): Documentation: Fixed layout in section "Integration" -- [#2](https://github.com/LaxarJS/ax-messages-display-widget/issues/2): Documentation: Fixed anchor link to the section "Integration" -- [#1](https://github.com/LaxarJS/ax-messages-display-widget/issues/1): Deleted AngularJS dependency in `bower.json` +- [#3](https://github.com/LaxarJS/ax-messages-widget/issues/3): Documentation: Fixed layout in section "Integration" +- [#2](https://github.com/LaxarJS/ax-messages-widget/issues/2): Documentation: Fixed anchor link to the section "Integration" +- [#1](https://github.com/LaxarJS/ax-messages-widget/issues/1): Deleted AngularJS dependency in `bower.json` ## v2.0.0 diff --git a/spec/ax-messages-widget.spec.js b/spec/ax-messages-widget.spec.js index 9121f6f..0fd3743 100644 --- a/spec/ax-messages-widget.spec.js +++ b/spec/ax-messages-widget.spec.js @@ -298,13 +298,13 @@ define( [ ////////////////////////////////////////////////////////////////////////////////////////////////// it( 'each message receives a visible dismiss button (R2.3)', function() { - var hideButton = renderWidget().find( 'button:visible' ); - - expect( hideButton.length ).toBe( 2 ); + var dom = renderWidget(); + expect( dom.find( '.alert button.close:visible' ).length ).toBe( 2 ); expect( testBed.scope.model.messagesForView.length ).toBe( 3 ); - hideButton.eq( 0 ).click(); + dom.find( '.alert-danger button.close' ).click(); + testBed.scope.$apply(); expect( testBed.scope.model.messagesForView.length ).toBe( 2 ); - hideButton.eq( 1 ).click(); + dom.find( '.alert-warning button.close' ).click(); expect( testBed.scope.model.messagesForView.length ).toBe( 0 ); } ); } );