-
Notifications
You must be signed in to change notification settings - Fork 4
[DT-1329] Enable RAS in production #3039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,7 @@ describe('ResearcherStatus', () => { | |
|
||
mount(<ResearcherStatus user={userWithCard} pageProps={pageProps} />) | ||
cy.contains('Researcher Status') | ||
cy.contains('eRA Commons Account') | ||
cy.contains('RAS Account') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Profile page will always point to RAS account |
||
cy.contains('Library Card issued to you') | ||
cy.contains('Issued on: ' + userWithCard.libraryCard?.createDate.toISOString().slice(0, 10)) | ||
cy.contains('Issued by: ' + signingOfficialUser.displayName) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,10 @@ import App from 'src/App' | |
import ReactGA from 'react-ga4' | ||
import StackdriverReporter from 'src/libs/stackdriverReporter' | ||
import { Config } from 'src/libs/config' | ||
import { MemoryRouter, Route } from 'react-router-dom' | ||
import { MemoryRouter, Route, Router } from 'react-router-dom' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Router should be imported from |
||
import { AuthenticateNIH } from 'src/libs/ajax/AuthenticateNIH' | ||
import { Storage } from 'src/libs/storage' | ||
import { createMemoryHistory } from 'history' | ||
import { Router } from 'react-router' | ||
import { ServiceStatus } from 'src/libs/ajax/ServiceStatus' | ||
|
||
const user = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,9 @@ export default function ERACommons({ | |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-expect-error | ||
catch (error: never) { | ||
displayError('Error from Authentication Provider: ' + error?.response?.data?.message + ': ' + currentUser.email) | ||
const userEmail = currentUser?.email || 'unknown user' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is possible that the email is empty in tests. |
||
const errorMessage = 'Error from Authentication Provider: ' + error?.response?.data?.message + ': ' + userEmail | ||
displayError(errorMessage) | ||
} | ||
} | ||
|
||
|
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.
RAS is enabled in all environments, so these tests no longer make sense.