feat: editorial article list
This commit is contained in:
1 parent
a0b3c58c52
commit
a671b81f80
103 files changed
+6493
-1805
No files matched your search
@@ -1,4 +1,5 @@
|
||||
Feature: Articles list pagination
|
||||
Superseded in part by article_list_localization: the request is GET /v1/article/?group=story&format=html&...; page, size, q, status, sort, lang, tab, author, site and seo live in the URL; items are story rows (representative version plus coverage) and total is the unit total (stories, or versions of the selected language). The tab counts follow lang, q, author, seo and site (never status or tab) instead of staying fixed while searching (deliberate behavior change); "No results" shows every count at 0 (board loc.l7.noResults). A change of lang, tab or author, like any filter, drops page. The summary "Showing {from}–{to} of {total}" is unchanged and the UnitLabel sits above it. Scenarios 4, 6 and 7 keep their wording with story rows and the grouped request.
|
||||
|
||||
As a verified RenewCMS user with many articles
|
||||
I want the Articles list split into pages with a page-size menu, server-side search and tabs, and shareable URLs
|
||||
@@ -91,15 +92,15 @@ Feature: Articles list pagination
|
||||
When the user types "plaster" in the search field and the debounce elapses
|
||||
Then GET ...&q=plaster&page=1 is sent
|
||||
And on success the URL is /article?q=plaster (page omitted)
|
||||
And the tab counts are unchanged
|
||||
And the same reset happens for a tab change, a sort change and a page-size change
|
||||
And the tab counts follow the new search (lang, q, author, seo and site; never status or tab)
|
||||
And the same reset happens for a tab change, a sort change, a page-size change, and a lang, author, site or seo change
|
||||
|
||||
Scenario: 9 Empty after search
|
||||
Given GET ...&q=tiles resolves 200 with items [], total 0 and counts {all 6, online 4, draft 2}
|
||||
Given GET ...&q=tiles resolves 200 with items [], total 0 and counts {all 0, online 0, draft 0, suggestions 0, missing 0}
|
||||
When the user searches "tiles"
|
||||
Then the paginator and the summary are hidden
|
||||
And the no-results state shows "No articles match "tiles"", "Check the spelling, or search for a shorter part of the title." and "Clear search"
|
||||
And the tabs still read "All 6" "Online 4" "Drafts 2"
|
||||
And every tab count reads 0 (board loc.l7.noResults), because counts follow the search
|
||||
|
||||
Scenario Outline: 10 Page size menu
|
||||
Given the user is on /article?page=3
|
||||
@@ -130,7 +131,7 @@ Feature: Articles list pagination
|
||||
Given the Default list has loaded and the user is on /article?page=3
|
||||
When the user selects the "Drafts" tab
|
||||
Then GET ...&status=draft&page=1 is sent and, on success, the URL is /article?status=draft
|
||||
And the tab counts are unchanged
|
||||
And the tab counts are unchanged, because counts never follow status or tab
|
||||
|
||||
Scenario Outline: Sort header, server-side, resets to page 1
|
||||
Given the user is on /article?page=7
|
||||
|
||||
Reference in new issue
Block a user