Public Access
feat(points): show points result on every status save
Core now settles on GET /api/rewards/games/{appid}. The Frontend
shows a toast, refreshes the header balance, and lists the paid
rows and reasons on the game page. Deploy Core first.
This commit is contained in:
1 parent
9adc606c57
commit
814decc781
20 files changed
+429
-12
No files matched your search
@@ -61,6 +61,15 @@ afterEach(() => {
|
||||
});
|
||||
|
||||
describe('PointsPage', () => {
|
||||
it('lists all thirteen rules', async () => {
|
||||
await renderPage();
|
||||
|
||||
const rules = ['STARTED', 'FINISHED', 'PROOF', 'COMPLETED', 'FINISHED_MANUAL', 'ONCE', 'PLAYSTATION', 'HIDDEN', 'CHECKED',
|
||||
'MONTH', 'STREAK', 'STARTER', 'UNLOCK'];
|
||||
const shown = screen.getAllByRole('listitem').map((item) => item.textContent);
|
||||
expect(shown.filter((text) => text.startsWith('POINTS.RULES.'))).toEqual(rules.map((rule) => `POINTS.RULES.${rule}`));
|
||||
});
|
||||
|
||||
it('shows the effect slots with a preview of each look', async () => {
|
||||
await renderPage();
|
||||
|
||||
|
||||
Reference in new issue
Block a user