1
Fork 0

Fix UI tests

This commit is contained in:
viktorstrate 2021-04-14 12:41:37 +02:00
parent bf19ffc0a5
commit e16df483f3
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
4 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -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'

View File

@ -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 () => {

View File

@ -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 () => {