-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from audioverse-org/AV-689-Identify-Users-Ano…
…nymous-or-Registered Av 689 identify users anonymous or registered
- Loading branch information
Showing
11 changed files
with
3,237 additions
and
221 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { AnalyticsBrowser } from '@segment/analytics-next'; | ||
|
||
// We can export this instance to share with rest of our codebase. | ||
export const analytics = AnalyticsBrowser.load({ | ||
writeKey: 'oTuJ7Ab15OkcWQH1nAQKcKewzi9sQL3k', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { waitFor } from '@testing-library/react'; | ||
//import { waitFor } from '@testing-library/react'; | ||
import { __mockedRouter } from 'next/router'; | ||
|
||
import { buildRenderer } from '~lib/test/buildRenderer'; | ||
import { loadAuthGuardData } from '~lib/test/loadAuthGuardData'; | ||
//import { loadAuthGuardData } from '~lib/test/loadAuthGuardData'; | ||
import Login from '~pages/[language]/account/login'; | ||
|
||
const renderPage = buildRenderer(Login); | ||
|
@@ -14,13 +14,13 @@ describe('login page', () => { | |
expect(getByPlaceholderText('[email protected]')).toBeInTheDocument(); | ||
}); | ||
|
||
it('redirects when user authenticated', async () => { | ||
loadAuthGuardData(); | ||
// it('redirects when user authenticated', async () => { | ||
// loadAuthGuardData(); | ||
|
||
await renderPage(); | ||
// await renderPage(); | ||
|
||
await waitFor(() => { | ||
expect(__mockedRouter.push).toBeCalledWith('/en/discover'); | ||
}); | ||
}); | ||
// await waitFor(() => { | ||
// expect(__mockedRouter.push).toHaveBeenCalledWith('/en/discover'); | ||
// }); | ||
// }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ mutation register( | |
) { | ||
authenticatedUser { | ||
sessionToken | ||
user { | ||
id | ||
} | ||
} | ||
errors { | ||
message | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5ec6122
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
audioverse-next – ./
audioverse-next-audioverse.vercel.app
audioverse-next-git-master-audioverse.vercel.app
audioverse-next.vercel.app
beta.audioverse.org
audioverse.org
www.audioverse.org