End-to-end tests against the pasture; profiles, follows, search, votes, reactions
tests/e2e (Playwright for .NET 1.61.0 on xunit v3, the Chromium 1228 already cached, never downloaded, never in CI) runs the published app against SocialPub's pasture and its town: run.sh publishes it with the Pasture environment (wwwroot/appsettings.Pasture.json, published only then; the deploy fails if it ever ships) and serves it as https://decepub.test. The tests sign in through the real login page and persona chooser, check that every request goes only to decepub.test and privapub.test with the right credential on the right API, render one post of each kind from each platform as its author wrote it, and check every action on the other side of the wire (town.sh stored): favourites, boosts and replies with their undoing, follows from a profile, votes, reactions. Each test is also a cell of the town's report (out/client.jsonl). They found two PrivaPub bugs fixed there (a blocked author's status answered null; sensitive remote media invented a content warning) and a reply addressed to nobody. New in the app, all checked by those tests: - profiles at /account/{id}: header, bio, fields, counts, the account's posts as posts, posts and replies, or media, and follow, unfollow, cancel a request, mute and block (AccountService); post authors and notifications open them in the app; - search at /search: accounts, posts and hashtags, a handle or an address resolved by PrivaPub; - poll voting on the card, and emoji reactions shown and given with one tap; before a persona's first reaction or vote it is told once that both are public (PublicNoticeService, the owner's decision); - follow requests answered from their notification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
0f68e74e38
commit
011bafb6af
39 files changed
+2074
-17
No files matched your search
@@ -806,4 +806,106 @@
|
||||
<data name="December solstice" xml:space="preserve">
|
||||
<value>solstizio di dicembre</value>
|
||||
</data>
|
||||
<data name="Follow" xml:space="preserve">
|
||||
<value>Segui</value>
|
||||
</data>
|
||||
<data name="Unfollow" xml:space="preserve">
|
||||
<value>Smetti di seguire</value>
|
||||
</data>
|
||||
<data name="Cancel the request" xml:space="preserve">
|
||||
<value>Annulla la richiesta</value>
|
||||
</data>
|
||||
<data name="Follows you" xml:space="preserve">
|
||||
<value>Ti segue</value>
|
||||
</data>
|
||||
<data name="Unmute" xml:space="preserve">
|
||||
<value>Riattiva</value>
|
||||
</data>
|
||||
<data name="Unblock" xml:space="preserve">
|
||||
<value>Sblocca</value>
|
||||
</data>
|
||||
<data name="Posts and replies" xml:space="preserve">
|
||||
<value>Post e risposte</value>
|
||||
</data>
|
||||
<data name="Locked account" xml:space="preserve">
|
||||
<value>Account protetto</value>
|
||||
</data>
|
||||
<data name="Bot" xml:space="preserve">
|
||||
<value>Bot</value>
|
||||
</data>
|
||||
<data name="This account doesn't exist." xml:space="preserve">
|
||||
<value>Questo account non esiste.</value>
|
||||
</data>
|
||||
<data name="Load more" xml:space="preserve">
|
||||
<value>Carica altro</value>
|
||||
</data>
|
||||
<data name="Search" xml:space="preserve">
|
||||
<value>Cerca</value>
|
||||
</data>
|
||||
<data name="Search accounts, posts and tags, or paste an address" xml:space="preserve">
|
||||
<value>Cerca account, post e tag, o incolla un indirizzo</value>
|
||||
</data>
|
||||
<data name="Accounts" xml:space="preserve">
|
||||
<value>Account</value>
|
||||
</data>
|
||||
<data name="Hashtags" xml:space="preserve">
|
||||
<value>Hashtag</value>
|
||||
</data>
|
||||
<data name="Nothing found." xml:space="preserve">
|
||||
<value>Nessun risultato.</value>
|
||||
</data>
|
||||
<data name="My profile" xml:space="preserve">
|
||||
<value>Il mio profilo</value>
|
||||
</data>
|
||||
<data name="Asked {0} to accept you." xml:space="preserve">
|
||||
<value>Hai chiesto a {0} di accettarti.</value>
|
||||
</data>
|
||||
<data name="Following {0}." xml:space="preserve">
|
||||
<value>Ora segui {0}.</value>
|
||||
</data>
|
||||
<data name="{0} unfollowed." xml:space="preserve">
|
||||
<value>Non segui più {0}.</value>
|
||||
</data>
|
||||
<data name="{0} unblocked." xml:space="preserve">
|
||||
<value>{0} sbloccato.</value>
|
||||
</data>
|
||||
<data name="{0} unmuted." xml:space="preserve">
|
||||
<value>{0} riattivato.</value>
|
||||
</data>
|
||||
<data name="Vote" xml:space="preserve">
|
||||
<value>Vota</value>
|
||||
</data>
|
||||
<data name="Your vote" xml:space="preserve">
|
||||
<value>Il tuo voto</value>
|
||||
</data>
|
||||
<data name="Voted." xml:space="preserve">
|
||||
<value>Votato.</value>
|
||||
</data>
|
||||
<data name="Accept" xml:space="preserve">
|
||||
<value>Accetta</value>
|
||||
</data>
|
||||
<data name="Refuse" xml:space="preserve">
|
||||
<value>Rifiuta</value>
|
||||
</data>
|
||||
<data name="Accepted." xml:space="preserve">
|
||||
<value>Accettata.</value>
|
||||
</data>
|
||||
<data name="Refused." xml:space="preserve">
|
||||
<value>Rifiutata.</value>
|
||||
</data>
|
||||
<data name="Reactions and votes are public" xml:space="preserve">
|
||||
<value>Reazioni e voti sono pubblici</value>
|
||||
</data>
|
||||
<data name="Anyone who can see the post can see that {0} reacted to it or voted in it. Your other personas are never named." xml:space="preserve">
|
||||
<value>Chiunque possa vedere il post può vedere che {0} ha reagito o votato. Le tue altre persone non vengono mai nominate.</value>
|
||||
</data>
|
||||
<data name="Cancel" xml:space="preserve">
|
||||
<value>Annulla</value>
|
||||
</data>
|
||||
<data name="Continue" xml:space="preserve">
|
||||
<value>Continua</value>
|
||||
</data>
|
||||
<data name="React" xml:space="preserve">
|
||||
<value>Reagisci</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -806,4 +806,106 @@
|
||||
<data name="December solstice" xml:space="preserve">
|
||||
<value>December solstice</value>
|
||||
</data>
|
||||
<data name="Follow" xml:space="preserve">
|
||||
<value>Follow</value>
|
||||
</data>
|
||||
<data name="Unfollow" xml:space="preserve">
|
||||
<value>Unfollow</value>
|
||||
</data>
|
||||
<data name="Cancel the request" xml:space="preserve">
|
||||
<value>Cancel the request</value>
|
||||
</data>
|
||||
<data name="Follows you" xml:space="preserve">
|
||||
<value>Follows you</value>
|
||||
</data>
|
||||
<data name="Unmute" xml:space="preserve">
|
||||
<value>Unmute</value>
|
||||
</data>
|
||||
<data name="Unblock" xml:space="preserve">
|
||||
<value>Unblock</value>
|
||||
</data>
|
||||
<data name="Posts and replies" xml:space="preserve">
|
||||
<value>Posts and replies</value>
|
||||
</data>
|
||||
<data name="Locked account" xml:space="preserve">
|
||||
<value>Locked account</value>
|
||||
</data>
|
||||
<data name="Bot" xml:space="preserve">
|
||||
<value>Bot</value>
|
||||
</data>
|
||||
<data name="This account doesn't exist." xml:space="preserve">
|
||||
<value>This account doesn't exist.</value>
|
||||
</data>
|
||||
<data name="Load more" xml:space="preserve">
|
||||
<value>Load more</value>
|
||||
</data>
|
||||
<data name="Search" xml:space="preserve">
|
||||
<value>Search</value>
|
||||
</data>
|
||||
<data name="Search accounts, posts and tags, or paste an address" xml:space="preserve">
|
||||
<value>Search accounts, posts and tags, or paste an address</value>
|
||||
</data>
|
||||
<data name="Accounts" xml:space="preserve">
|
||||
<value>Accounts</value>
|
||||
</data>
|
||||
<data name="Hashtags" xml:space="preserve">
|
||||
<value>Hashtags</value>
|
||||
</data>
|
||||
<data name="Nothing found." xml:space="preserve">
|
||||
<value>Nothing found.</value>
|
||||
</data>
|
||||
<data name="My profile" xml:space="preserve">
|
||||
<value>My profile</value>
|
||||
</data>
|
||||
<data name="Asked {0} to accept you." xml:space="preserve">
|
||||
<value>Asked {0} to accept you.</value>
|
||||
</data>
|
||||
<data name="Following {0}." xml:space="preserve">
|
||||
<value>Following {0}.</value>
|
||||
</data>
|
||||
<data name="{0} unfollowed." xml:space="preserve">
|
||||
<value>{0} unfollowed.</value>
|
||||
</data>
|
||||
<data name="{0} unblocked." xml:space="preserve">
|
||||
<value>{0} unblocked.</value>
|
||||
</data>
|
||||
<data name="{0} unmuted." xml:space="preserve">
|
||||
<value>{0} unmuted.</value>
|
||||
</data>
|
||||
<data name="Vote" xml:space="preserve">
|
||||
<value>Vote</value>
|
||||
</data>
|
||||
<data name="Your vote" xml:space="preserve">
|
||||
<value>Your vote</value>
|
||||
</data>
|
||||
<data name="Voted." xml:space="preserve">
|
||||
<value>Voted.</value>
|
||||
</data>
|
||||
<data name="Accept" xml:space="preserve">
|
||||
<value>Accept</value>
|
||||
</data>
|
||||
<data name="Refuse" xml:space="preserve">
|
||||
<value>Refuse</value>
|
||||
</data>
|
||||
<data name="Accepted." xml:space="preserve">
|
||||
<value>Accepted.</value>
|
||||
</data>
|
||||
<data name="Refused." xml:space="preserve">
|
||||
<value>Refused.</value>
|
||||
</data>
|
||||
<data name="Reactions and votes are public" xml:space="preserve">
|
||||
<value>Reactions and votes are public</value>
|
||||
</data>
|
||||
<data name="Anyone who can see the post can see that {0} reacted to it or voted in it. Your other personas are never named." xml:space="preserve">
|
||||
<value>Anyone who can see the post can see that {0} reacted to it or voted in it. Your other personas are never named.</value>
|
||||
</data>
|
||||
<data name="Cancel" xml:space="preserve">
|
||||
<value>Cancel</value>
|
||||
</data>
|
||||
<data name="Continue" xml:space="preserve">
|
||||
<value>Continue</value>
|
||||
</data>
|
||||
<data name="React" xml:space="preserve">
|
||||
<value>React</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in new issue
Block a user