Fix stream view spec to look for different things on FF and on webkit. Sigh.
This commit is contained in:
parent
13d1e68540
commit
38908396f5
1 changed files with 9 additions and 3 deletions
|
|
@ -61,11 +61,17 @@ describe("app.views.Stream", function(){
|
|||
expect(this.statusElement.find('.read-more').length).toEqual(0);
|
||||
});
|
||||
|
||||
xit('collapses the p elements', function() {
|
||||
// This does not work on firefox. Seems to be different behavior of the expander plugin. Needs more work.
|
||||
it('collapses the p elements on webkit', function() {
|
||||
// The expander plugin has different behavior on firefox and webkit >.<
|
||||
expect(this.statusElement.find('.collapsible p').length).toEqual(2);
|
||||
readMoreLink.click();
|
||||
expect(this.statusElement.find('.collapsible p').length).toEqual(1);
|
||||
if(this.statusElement.find('.collapsible .summary').length > 0) {
|
||||
// Firefox
|
||||
expect(this.statusElement.find('.collapsible p').length).toEqual(2);
|
||||
} else {
|
||||
// Chrome
|
||||
expect(this.statusElement.find('.collapsible p').length).toEqual(1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue