mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-11-27 15:50:07 -05:00
* Community page: Recent, General and Following tabs
Community opens on Recent: the newest discussions on every app and in
General together, each beside its app's portrait art with its name and
consoles, who started it, its comments and when it was last active.
"Only apps in my library" narrows it to the library's catalog apps, and
followed discussions with new comments say so. General is the one
remaining board, and Following ("Discussions you follow" before) shows
how many have new comments.
The Help with Quiver Launcher and Requests boards are gone: the intro
points launcher help to Discord and GitHub Issues.
Needs the site's discussions:recent and discussions:recentInApps, so the
website deploys first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW12BVbGoZCQHLFetfR3
* Expect Community's Recent and General tabs in the controller test
The Help with Quiver Launcher and Requests tabs went in #432.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW12BVbGoZCQHLFetfR3
---------
Co-authored-by: Claude <noreply@anthropic.com>
25 lines
1.3 KiB
JavaScript
25 lines
1.3 KiB
JavaScript
/**
|
|
* Discussions (discussions.tsx) with a controller: the top bar's Community page and an app's Discussions tab. The
|
|
* stand-in account has no live site, so both say discussions aren't available; what's tested is that they open, the
|
|
* d-pad reaches all of them and B leaves them.
|
|
*/
|
|
import { test } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { appPage, back, everything, open, page, s, section, useSharedApp } from "./controller.js";
|
|
|
|
useSharedApp();
|
|
|
|
test("the Community page opens from the top bar, and an app's page has a Discussions tab", async () => {
|
|
assert.equal(await open("button.community-button"), "page: Community");
|
|
for (const name of ["Recent", "General"]) assert.equal(await page.getByRole("tab", { name }).count(), 1, `the ${name} tab`);
|
|
// Help with Quiver Launcher and Requests went: launcher help is on Discord and GitHub Issues.
|
|
assert.equal(await page.getByRole("tab", { name: "Requests" }).count(), 0);
|
|
assert.equal(await page.getByText("Discussions aren't available right now.").count(), 1);
|
|
await everything("Community");
|
|
assert.equal(await back(), "main");
|
|
assert.equal(await appPage(), "page: Test Port");
|
|
await section("Discussions");
|
|
await everything("its Discussions");
|
|
assert.deepEqual(s.errors, []);
|
|
});
|