Skip to content

Commit

Permalink
Remove deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Oct 27, 2023
1 parent 6678833 commit 98da85b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
11 changes: 0 additions & 11 deletions src/fragmentarium/ui/fragment/CuneiformFragment.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,6 @@ it('Renders all folios', () => {
}
})

it('Links museum record', () => {
expect(
screen.getByLabelText(`The British Museum object ${fragment.bmIdNumber}`)
).toHaveAttribute(
'href',
`https://www.britishmuseum.org/collection/object/${encodeURIComponent(
fragment.bmIdNumber
)}`
)
})

it('Updates view on Edition save', async () => {
fragmentService.updateEdition.mockReturnValueOnce(
Promise.resolve(updatedFragment)
Expand Down
24 changes: 0 additions & 24 deletions src/fragmentarium/ui/info/Details.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,6 @@ describe('All details', () => {
expect(screen.getByText(expectedMeasures)).toBeInTheDocument()
})

it('Renders editedInOraccProject', () => {
expect(screen.getByText(fragment.editedInOraccProject)).toBeInTheDocument()
})

it('Renders CDLI number', () => {
expect(
screen.getByText((_, node) => {
return node?.textContent === `CDLI: ${fragment.cdliNumber}`
})
).toBeInTheDocument()
})

it('Links CDLI number', () =>
expect(screen.getByText(fragment.cdliNumber)).toHaveAttribute(
'href',
`https://cdli.mpiwg-berlin.mpg.de/${encodeURIComponent(
fragment.cdliNumber
)}`
))

it('Renders accession', () => {
expect(
screen.getByText(`Accession: ${fragment.accession}`)
Expand Down Expand Up @@ -212,10 +192,6 @@ describe('Missing details', () => {
).toBeInTheDocument()
})

it('Renders dash for CDLI number', () => {
expect(screen.getByText('CDLI: -')).toBeInTheDocument()
})

it('Renders dash for accession', () => {
expect(screen.getByText('Accession: -')).toBeInTheDocument()
})
Expand Down
17 changes: 0 additions & 17 deletions src/fragmentarium/ui/info/ExternalResources.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import { render, screen } from '@testing-library/react'
import ExternalResources from './ExternalResources'

import Museum from 'fragmentarium/domain/museum'
import {
externalNumbersFactory,
fragmentFactory,
Expand Down Expand Up @@ -34,19 +33,3 @@ it('Links to CDLI text', () => {
`https://cdli.mpiwg-berlin.mpg.de/${encodeURIComponent(cdliNumber)}`
)
})

it('Renders The British Museum logo', () => {
expect(screen.getByAltText('The British Museum')).toHaveAttribute(
'src',
Museum.of('The British Museum').logo
)
})

it('Links to The British Museum object', () => {
expect(
screen.getByLabelText(`The British Museum object ${bmIdNumber}`)
).toHaveAttribute(
'href',
Museum.of('The British Museum').createLinkFor(fragment).url
)
})

0 comments on commit 98da85b

Please sign in to comment.