generated from openedx/frontend-template-application
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #115 from Pearson-Advance/vue/PADV-1533
PADV-1533 feat: add unauthorized page
- Loading branch information
Showing
4 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/features/Main/UnauthorizedPage/__test__/index.test.jsx
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,14 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import '@testing-library/jest-dom/extend-expect'; | ||
import UnauthorizedPage from 'features/Main/UnauthorizedPage'; | ||
|
||
import { unauthorizedText } from 'features/constants'; | ||
|
||
describe('Unauthorized Component', () => { | ||
test('should render message', async () => { | ||
const { container } = render(<UnauthorizedPage />); | ||
|
||
expect(container).toHaveTextContent(unauthorizedText); | ||
}); | ||
}); |
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,15 @@ | ||
import React from 'react'; | ||
|
||
import { Container } from '@edx/paragon'; | ||
|
||
import { unauthorizedText } from 'features/constants'; | ||
|
||
const UnauthorizedPage = () => ( | ||
<Container className="px-0 container-pages"> | ||
<Container size="md" className="p-4 my-4 page-content-container text-center font-weight-bold"> | ||
<p>{unauthorizedText}</p> | ||
</Container> | ||
</Container> | ||
); | ||
|
||
export default UnauthorizedPage; |
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