Mention live filter bugfix and add tests for it. updates #212
This commit is contained in:
parent
37255a2692
commit
ff32866f21
@ -5,6 +5,7 @@ Changelog
|
|||||||
------------------
|
------------------
|
||||||
|
|
||||||
* Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand]
|
* Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand]
|
||||||
|
* #212 Bugfix. Groups weren't being show again after the live filter was cleared. [jcbrand]
|
||||||
* #215 (and also #75) XEP-0249: Direct MUC Invitations. [jcbrand]
|
* #215 (and also #75) XEP-0249: Direct MUC Invitations. [jcbrand]
|
||||||
* #216 Contacts tab empty when using xhr_user_search. [hcderaad and jcbrand]
|
* #216 Contacts tab empty when using xhr_user_search. [hcderaad and jcbrand]
|
||||||
|
|
||||||
|
@ -179,7 +179,6 @@
|
|||||||
runs (function () {
|
runs (function () {
|
||||||
expect($roster.find('dd:visible').length).toBe(5);
|
expect($roster.find('dd:visible').length).toBe(5);
|
||||||
expect($roster.find('dt:visible').length).toBe(4);
|
expect($roster.find('dt:visible').length).toBe(4);
|
||||||
|
|
||||||
$filter.val("xxx");
|
$filter.val("xxx");
|
||||||
$filter.trigger('keydown');
|
$filter.trigger('keydown');
|
||||||
});
|
});
|
||||||
@ -187,6 +186,13 @@
|
|||||||
runs (function () {
|
runs (function () {
|
||||||
expect($roster.find('dd:visible').length).toBe(0);
|
expect($roster.find('dd:visible').length).toBe(0);
|
||||||
expect($roster.find('dt:visible').length).toBe(0);
|
expect($roster.find('dt:visible').length).toBe(0);
|
||||||
|
$filter.val(""); // Check that contacts are shown again, when the filter string is cleared.
|
||||||
|
$filter.trigger('keydown');
|
||||||
|
});
|
||||||
|
waits(350); // Needed, due to debounce
|
||||||
|
runs(function () {
|
||||||
|
expect($roster.find('dd:visible').length).toBe(15);
|
||||||
|
expect($roster.find('dt:visible').length).toBe(5);
|
||||||
});
|
});
|
||||||
converse.roster_groups = false;
|
converse.roster_groups = false;
|
||||||
});
|
});
|
||||||
@ -219,6 +225,13 @@
|
|||||||
waits(350); // Needed, due to debounce
|
waits(350); // Needed, due to debounce
|
||||||
runs (function () {
|
runs (function () {
|
||||||
expect($roster.find('dt:visible').length).toBe(0);
|
expect($roster.find('dt:visible').length).toBe(0);
|
||||||
|
$filter.val(""); // Check that groups are shown again, when the filter string is cleared.
|
||||||
|
$filter.trigger('keydown');
|
||||||
|
});
|
||||||
|
waits(350); // Needed, due to debounce
|
||||||
|
runs(function () {
|
||||||
|
expect($roster.find('dd:visible').length).toBe(15);
|
||||||
|
expect($roster.find('dt:visible').length).toBe(5);
|
||||||
});
|
});
|
||||||
converse.roster_groups = false;
|
converse.roster_groups = false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user