Public Access
feat(audit): game catalog search and time to beat correction
New page /audit/games: search every game and open the correction dialog without owning it. Time to beat as hours + minutes. Audit log game links open /audit/games?appid=. Menu entry next to the link queue.
This commit is contained in:
1 parent
6627a8db66
commit
0c300c455d
14 files changed
+439
-19
No files matched your search
@@ -88,12 +88,13 @@ describe('AppHeader', () => {
|
||||
expect(screen.queryByText('NAV.ADMIN_BROADCASTS')).toBeNull();
|
||||
});
|
||||
|
||||
it('offersTheLinkQueueAndAuditLogToAnAuditorOnly', async () => {
|
||||
it('offersTheCatalogLinkQueueAndAuditLogToAnAuditorOnly', async () => {
|
||||
loggedInAs({role: 'AUDITOR', activeRole: 'AUDITOR'});
|
||||
await vi.waitFor(() => expect(fetch).toHaveBeenCalledWith(expect.stringContaining('/api/users/me'), expect.anything()));
|
||||
openMenu();
|
||||
|
||||
expect(await screen.findByText('NAV.LINK_QUEUE')).toBeTruthy();
|
||||
expect(await screen.findByText('NAV.GAME_CATALOG')).toBeTruthy();
|
||||
expect(screen.getByText('NAV.LINK_QUEUE')).toBeTruthy();
|
||||
expect(screen.getByText('NAV.AUDIT_LOG')).toBeTruthy();
|
||||
expect(screen.queryByText('NAV.ADMIN')).toBeNull();
|
||||
});
|
||||
@@ -108,6 +109,7 @@ describe('AppHeader', () => {
|
||||
expect(screen.getByText('NAV.WHATS_NEW')).toBeTruthy();
|
||||
expect(screen.queryByText('NAV.ADMIN')).toBeNull();
|
||||
expect(screen.queryByText('NAV.LINK_QUEUE')).toBeNull();
|
||||
expect(screen.queryByText('NAV.GAME_CATALOG')).toBeNull();
|
||||
expect(screen.queryByText('NAV.ADMIN_NEWS')).toBeNull();
|
||||
expect(screen.queryByText('NAV.ADMIN_BROADCASTS')).toBeNull();
|
||||
expect(screen.queryByText('NAV.VIEW_AS.MENU')).toBeNull();
|
||||
|
||||
Reference in new issue
Block a user