Commit 1e2eaed
committed
Fix tests broken by the front-end redesign
Five tests started failing once the redesign rewrote the
markup of pages they assert against:
- src/oauth.test.ts looks up the listed scopes via
"#scopes > li > code". The new authorization page used
the same <ul>/<li>/<code> structure but had dropped the
id="scopes" attribute on the <ul>. Re-added.
- src/pages/federation.test.tsx expects the canonical handle
conflict copy to read "Account refresh was blocked by a
canonical handle conflict." The redesign had shortened it
to "Refresh blocked by a canonical handle conflict.";
restore the longer wording — it's also clearer to the
reader.
- src/pages/thumbnail_cleanup.test.ts asserted
"Number of Items: 4,980" on the preview output. The
preview now renders the count inside a <dl><dt>Items</dt>
<dd>4,980</dd> grid, so the test is updated to assert the
new "Items" label and "4,980" value separately, and its
expect.assertions count moves from 5 to 6.
- src/pages/profile/index.test.tsx asserted
"Posts tagged #TestTag" as a single string. The redesign
splits the heading into "Posts tagged " followed by a
brand-tinted <span>#TestTag</span>, so the assertion is
split in two and the assertions count moves from 5 to 6.
Assisted-by: Claude Code:claude-opus-4-71 parent 69a1c49 commit 1e2eaed
4 files changed
Lines changed: 9 additions & 6 deletions
File tree
- src/pages
- oauth
- profile
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
0 commit comments