Public Access
feat(search): add game search page (#50)
Add /search to find games by name on IGDB. A game in the library opens its game page. Other hits open a detail view with an Add button. The query stays in the URL. To fit the new nav icon on 360 px phones, the header padding is smaller and the points chip hides while the Questions icon shows.
This commit is contained in:
1 parent
5be0d42bca
commit
60dcfe8992
13 files changed
+276
-16
No files matched your search
@@ -55,6 +55,12 @@ describe('AppHeader', () => {
|
||||
expect(screen.getByTitle('NAV.FOLLOWING').getAttribute('href')).toBe('/following');
|
||||
});
|
||||
|
||||
it('links to the game search when logged in', () => {
|
||||
loggedInAs({role: 'USER', activeRole: 'USER'});
|
||||
|
||||
expect(screen.getByTitle('NAV.SEARCH').getAttribute('href')).toBe('/search');
|
||||
});
|
||||
|
||||
it('links to the community stats when logged in', () => {
|
||||
loggedInAs({role: 'USER', activeRole: 'USER'});
|
||||
|
||||
|
||||
Reference in new issue
Block a user