Fix UI tests
This commit is contained in:
parent
bf19ffc0a5
commit
e16df483f3
|
@ -9,7 +9,7 @@ import { MemoryRouter } from 'react-router-dom'
|
|||
|
||||
import * as authentication from './helpers/authentication'
|
||||
|
||||
require('./localization').default()
|
||||
require('./localization').setupLocalization()
|
||||
|
||||
jest.mock('./helpers/authentication.ts')
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ import SharePage, {
|
|||
import { SIDEBAR_DOWNLOAD_QUERY } from '../../components/sidebar/SidebarDownload'
|
||||
import { SHARE_ALBUM_QUERY } from './AlbumSharePage'
|
||||
|
||||
require('../../localization').default()
|
||||
require('../../localization').setupLocalization()
|
||||
|
||||
describe('load correct share page, based on graphql query', () => {
|
||||
const token = 'TOKEN123'
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
} from '@testing-library/react'
|
||||
import { MemoryRouter } from 'react-router-dom'
|
||||
|
||||
require('../../localization').default()
|
||||
require('../../localization').setupLocalization()
|
||||
|
||||
describe('routes', () => {
|
||||
test('unauthorized root path should navigate to login page', async () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import React from 'react'
|
|||
import { render, screen } from '@testing-library/react'
|
||||
import { MetadataInfo } from './MediaSidebar'
|
||||
|
||||
require('../../localization').default()
|
||||
require('../../localization').setupLocalization()
|
||||
|
||||
describe('MetadataInfo', () => {
|
||||
test('without EXIF information', async () => {
|
||||
|
|
Loading…
Reference in New Issue