Skip to content

Commit 521a4ff

Browse files
committed
fix: e2e errors
1 parent 42d5031 commit 521a4ff

5 files changed

Lines changed: 3 additions & 6 deletions

File tree

dev-env/shib-dev-env/keycloak/test-realm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@
940940
"alwaysDisplayInConsole": false,
941941
"clientAuthenticatorType": "client-secret",
942942
"redirectUris": [
943-
"https://localhost/spa/*"
943+
"https://localhost/modern/*"
944944
],
945945
"webOrigins": [
946946
"+"

src/sections/dataset/dataset-files/files-table/file-actions/file-actions-cell/file-action-buttons/file-options-menu/GuestbookCollectForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function GuestbookCollectForm({
5454
[guestbook?.customQuestions]
5555
)
5656
const customTermsHref = datasetPersistentId
57-
? `/spa${Route.DATASETS}?${QueryParamKey.PERSISTENT_ID}=${encodeURIComponent(
57+
? `/modern${Route.DATASETS}?${QueryParamKey.PERSISTENT_ID}=${encodeURIComponent(
5858
datasetPersistentId
5959
)}&${QueryParamKey.TAB}=terms&termsTab=guestbook`
6060
: undefined

tests/component/sections/dataset/dataset-files/guestbook/DownloadWithTermsAndGuestbookModal.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ describe('DownloadWithTermsAndGuestbookModal', () => {
233233
cy.findByRole('link', { name: 'Custom Dataset Terms' }).should(
234234
'have.attr',
235235
'href',
236-
'/spa/datasets?persistentId=doi%3A10.5072%2FFK2%2FFILEPAGE&tab=terms&termsTab=guestbook'
236+
'/modern/datasets?persistentId=doi%3A10.5072%2FFK2%2FFILEPAGE&tab=terms&termsTab=guestbook'
237237
)
238238
})
239239

tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type Dataset = {
1616
datasetVersion: { metadataBlocks: { citation: { fields: { value: string }[] } } }
1717
}
1818
const DRAFT_PARAM = DatasetNonNumericVersionSearchParam.DRAFT
19-
const FRONTEND_BASE_PATH = '/spa'
2019

2120
describe('Dataset', () => {
2221
beforeEach(() => {

tests/e2e-integration/e2e/sections/file/File.spec.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { FileHelper } from '../../../shared/files/FileHelper'
66
import { GuestbookHelper } from '../../../shared/guestbooks/GuestbookHelper'
77
import { faker } from '@faker-js/faker'
88

9-
const FRONTEND_BASE_PATH = '/spa'
10-
119
describe('File', () => {
1210
beforeEach(() => {
1311
TestsUtils.login().then((token) => {

0 commit comments

Comments
 (0)