From abe85c8b90b99128dd174bc19b9610510639faff Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 19 Apr 2013 00:32:46 +0200 Subject: [PATCH] Update tests The chat toggle element is now determined by class, not id. --- spec/MainSpec.js | 4 ++-- tests.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/MainSpec.js b/spec/MainSpec.js index d5b13d3a2..c34582ba1 100644 --- a/spec/MainSpec.js +++ b/spec/MainSpec.js @@ -62,9 +62,9 @@ expect(this.rosterview.$el.is(':visible')).toEqual(false); }, xmppchat)); - it("can be opened by clicking a DOM element with id 'toggle-online-users'", $.proxy(function () { + it("can be opened by clicking a DOM element with class 'toggle-online-users'", $.proxy(function () { spyOn(this, 'toggleControlBox').andCallThrough(); - $('#toggle-online-users').click(); + $('.toggle-online-users').click(); expect(this.toggleControlBox).toHaveBeenCalled(); }, xmppchat)); diff --git a/tests.html b/tests.html index 76fac3a6c..6584eadb1 100644 --- a/tests.html +++ b/tests.html @@ -24,7 +24,7 @@