feat(pass): add pass page and update voting copy

This commit is contained in:
Tommaso Casaburi
2026-04-17 14:21:10 +07:00
parent 4cae9c3caa
commit 1c6cf3fc0f
45 changed files with 501 additions and 97 deletions
+12
View File
@@ -166,6 +166,10 @@ vi.mock('../views/not-found', () => ({
default: makeNamedComponent('not-found-view'),
}));
vi.mock('../views/pass', () => ({
default: makeNamedComponent('pass-view'),
}));
vi.mock('../views/pending-post', () => ({
default: makeNamedComponent('pending-post-view'),
}));
@@ -314,6 +318,14 @@ describe('App', () => {
expect(container.querySelector('[data-testid="not-found-view"]')).toBeTruthy();
});
it('renders the pass route as a global static page', async () => {
await renderApp('/pass');
expect(latestLocation).toBe('/pass');
expect(container.querySelector('[data-testid="pass-view"]')).toBeTruthy();
expect(container.querySelector('[data-testid="boards-bar"]')).toBeNull();
});
it('canonicalizes board address routes to directory codes while preserving query strings', async () => {
await renderApp('/music-posting.eth/thread/comment-1?focus=1');