Skip to content

Commit

Permalink
feat: implement basic design for empty content library (#13805)
Browse files Browse the repository at this point in the history
  • Loading branch information
standeren authored Oct 25, 2024
1 parent e371e77 commit acda247
Show file tree
Hide file tree
Showing 61 changed files with 1,007 additions and 208 deletions.
23 changes: 23 additions & 0 deletions 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/app-development/enums/RoutePaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export enum RoutePaths {
Deploy = 'deploy',
Text = 'text-editor',
ProcessEditor = 'process-editor',
ContentLibrary = 'content-library',
}
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 />);
};
Loading

0 comments on commit acda247

Please sign in to comment.