mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Count the shown News section in the panel header
With Local chosen, the header counted the Conflicts feed's cards instead of the Local list's.
This commit is contained in:
1 parent
74d40c4b1a
commit
fa736a7cd5
2 files changed
+9
-1
No files matched your search
@@ -228,6 +228,11 @@ test('filters, the Local section and empty or failed reads', () => {
|
||||
assert.equal(panel.querySelector('[data-chip-id="ua-ru-war"]'), null);
|
||||
assert.equal(panel.querySelector('select[aria-label="Severity"]'), null);
|
||||
assert.equal(panel.querySelector('[aria-label="Latest news"]'), null);
|
||||
assert.equal(document.getElementById('news-panel-count').textContent, '0');
|
||||
news.update(
|
||||
localView({ active: true, items: [feedCardView(report('near'), NOW)] }),
|
||||
);
|
||||
assert.equal(document.getElementById('news-panel-count').textContent, '1');
|
||||
news.update(localView({ active: true }));
|
||||
assert.match(
|
||||
panel.querySelector('[aria-label="Local"]').textContent,
|
||||
|
||||
Reference in new issue
Block a user