Show a revised-chapters count on the story list
This commit is contained in:
@@ -263,6 +263,20 @@ test('story list stacks on a narrow screen instead of scrolling sideways', async
|
||||
assert.deepEqual(dataLabels, [undefined, 'Author', 'Site', 'Chapters', 'Status', 'Last check']);
|
||||
});
|
||||
|
||||
test('the story list shows removed and revised chapter counts, only when there are any', async () => {
|
||||
details.story.offsite_count = 0;
|
||||
details.story.revised_count = 0;
|
||||
await mountStories();
|
||||
assert.doesNotMatch(main.textContent, /removed/);
|
||||
assert.doesNotMatch(main.textContent, /revised/);
|
||||
cleanups.pop()();
|
||||
details.story.offsite_count = 2;
|
||||
details.story.revised_count = 3;
|
||||
await mountStories();
|
||||
assert.match(main.textContent, /2 removed/);
|
||||
assert.match(main.textContent, /3 revised/);
|
||||
});
|
||||
|
||||
test('story download modes send selected chapters and clear forced fields after success', async () => {
|
||||
await mountStory();
|
||||
api.on('POST', 'stories/1/download', { mode_label: 'Queued' });
|
||||
|
||||
Reference in New Issue
Block a user