-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement basic design for empty content library (#13805)
- Loading branch information
Showing
61 changed files
with
1,007 additions
and
208 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
backend/src/Designer/wwwroot/designer/img/Altinn-studio-3-blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions
19
backend/src/Designer/wwwroot/designer/img/Altinn-studio-code-list-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions
24
backend/src/Designer/wwwroot/designer/img/Altinn-studio-images-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
24 changes: 24 additions & 0 deletions
24
frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx
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,24 @@ | ||
import React from 'react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import { AppContentLibrary } from './AppContentLibrary'; | ||
import { textMock } from '@studio/testing/mocks/i18nMock'; | ||
|
||
describe('AppContentLibrary', () => { | ||
it('renders the AppContentLibrary with codeLists and images resources', () => { | ||
renderAppContentLibrary(); | ||
const libraryTitle = screen.getByRole('heading', { | ||
name: textMock('app_content_library.landing_page.title'), | ||
}); | ||
const codeListMenuElement = screen.getByText( | ||
textMock('app_content_library.code_lists.page_name'), | ||
); | ||
const imagesMenuElement = screen.getByText(textMock('app_content_library.images.page_name')); | ||
expect(libraryTitle).toBeInTheDocument(); | ||
expect(codeListMenuElement).toBeInTheDocument(); | ||
expect(imagesMenuElement).toBeInTheDocument(); | ||
}); | ||
}); | ||
|
||
const renderAppContentLibrary = () => { | ||
render(<AppContentLibrary />); | ||
}; |
Oops, something went wrong.