Skip to content

Commit a18e20a

Browse files
committed
test: fix create different collection alias on functional
1 parent 1de7036 commit a18e20a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/functional/collections/GetCollectionFeaturedItems.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { ROOT_COLLECTION_ID } from '../../../src/collections/domain/models/Collection'
1313

1414
describe('execute', () => {
15-
const testCollectionAlias = 'collectionsRepositoryTestCollection'
15+
const testCollectionAlias = 'getCollectionsFeaturedItemsTest'
1616
let testFeaturedItemId: number
1717

1818
beforeEach(async () => {
@@ -59,7 +59,7 @@ describe('execute', () => {
5959
expect(featuredItemsResponse[0].displayOrder).toBe(1)
6060
// expect(featuredItemsResponse[0].content).toBe('<p class="rte-paragraph">Test content</p>')
6161
expect(featuredItemsResponse[0].imageFileUrl).toBe(
62-
'http://localhost:8080/api/access/dataverseFeatureItemImage/1'
62+
`http://localhost:8080/api/access/dataverseFeatureItemImage/${featuredItemsResponse[0].id}`
6363
)
6464
expect(featuredItemsResponse[0].imageFileName).toBe('featured-item-test-image.png')
6565
})

test/functional/collections/UpdateCollectionFeaturedItems.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
//TODO:ME - After content sanitization is fixed in backend, check if the content is being updated correctly keeping classes, href, rel, target, etc attributes.
2020

2121
describe('execute', () => {
22-
const testCollectionAlias = 'collectionsRepositoryTestCollection'
22+
const testCollectionAlias = 'updateCollectionFeaturedItemsTest'
2323

2424
beforeEach(async () => {
2525
ApiConfig.init(

0 commit comments

Comments
 (0)