diff --git a/psf-memo-client/specs/topics-table-layout.feature b/psf-memo-client/specs/topics-table-layout.feature new file mode 100644 index 0000000..eb4f4f5 --- /dev/null +++ b/psf-memo-client/specs/topics-table-layout.feature @@ -0,0 +1,37 @@ +# Scenarios: Topics Table Layout - 1, Topics Table Layout - 2, Topics Table Layout - 3, Topics Table Layout - 4 +# +# The topics page renders topics in a react-bootstrap Table so the four columns +# line up across rows. The header row labels the columns; each body row carries +# the topic name, the relative-time label, the post count, and the follower +# count in that order, so a value never drifts into another column. Rows stay +# navigable to the topic feed, and the table scrolls horizontally when the four +# columns do not fit on a narrow screen. +Feature: Topics Table Layout + + Scenario: Topics Table Layout - 1 the topics table labels its four columns + Given the psf-memo-db API serves a topic named "bitcoin" with 5 posts + When I open the topics page + Then the topics table has the column headers "Topic", "Most recent post", "Posts", "Followers" + + Scenario Outline: Topics Table Layout - 2 each topic's fields appear in the matching columns + Given the current time is 1800000000000 + And the psf-memo-db API serves a topic named "" with posts + And the topic "" has followers + And the topic "" was last posted at + When I open the topics page + Then the topics table row for "" has the cells "", "