Skip to content

Commit

Permalink
removed condition based pcore as no longer required (#476)
Browse files Browse the repository at this point in the history
Co-authored-by: mohas22 <[email protected]>
  • Loading branch information
samhere06 and mohas22 authored May 14, 2024
1 parent 0ff9158 commit 8f39d7c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/e2e/MediaCo/portal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ test.describe('E2E test', () => {
const attachmentID = await page.locator('div[id="attachment-ID"]').textContent();
await page.setInputFiles(`#${attachmentID}`, filePath);

const pCoreVersion = await page.evaluate(() => window.PCore.getPCoreVersion());
const isInfinity23OrHigher = ['8.23.0', '23.1.1'].includes(pCoreVersion);

await Promise.all([
page.waitForResponse(
`${endpoints.serverConfig.infinityRestServerUrl}${
Expand All @@ -125,7 +122,7 @@ test.describe('E2E test', () => {
page.waitForResponse(
`${endpoints.serverConfig.infinityRestServerUrl}${
endpoints.serverConfig.appAlias ? `/app/${endpoints.serverConfig.appAlias}` : ''
}/api/application/v2/cases/${currentCaseID}/attachments${isInfinity23OrHigher ? '?includeThumbnail=false' : ''}`
}/api/application/v2/cases/${currentCaseID}/attachments?includeThumbnail=false`
)
]);

Expand Down

0 comments on commit 8f39d7c

Please sign in to comment.