Skip to content

Commit

Permalink
Merge branch 'main' into create-closeSubformButton-component
Browse files Browse the repository at this point in the history
  • Loading branch information
lassopicasso committed Oct 30, 2024
2 parents 71a7607 + 378bf66 commit 8599607
Show file tree
Hide file tree
Showing 189 changed files with 2,744 additions and 1,300 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 8599607

Please sign in to comment.