Skip to content

Commit

Permalink
update links for functional tests (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelJacob21012 authored Oct 12, 2023
1 parent 5f9366b commit e0308ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static LinkedHashMap<String, Object> secret(String secretName, String envVar) {
}

withNightlyPipeline(type, product, component) {
env.TEST_URL = params.ExUI_URL
env.TEST_URL = 'http://em-showcase-aat.service.core-compute-aat.internal/media-viewer'
env.IDAM_URL = params.IDAM_API_URL
env.S2S_PROVIDER = params.S2S_PROVIDER_URL
env.CCD_DATA_STORE_API_URL = params.CCD_DATA_STORE_URL
Expand Down
10 changes: 3 additions & 7 deletions test/end-to-end/helpers/mvCaseHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,9 @@ async function previewEnv() {
}

async function executeTestsOnPreview(I, caseId, mediaType) {
if (process.env.TEST_URL.includes(mvData.PREVIEW_ENV) || process.env.TEST_URL.includes(mvData.LOCAL_ENV)) {
await I.amOnPage(testConfig.TestUrl, testConfig.PageLoadTime);
await I.waitForEnabled(commonConfig.assertEnvTestData, testConfig.TestTimeToWaitForText);
console.log(await I.grabCurrentUrl());
} else {
await openCaseDocumentsInMediaViewer(I, caseId, mediaType);
}
await I.amOnPage(testConfig.TestUrl, testConfig.PageLoadTime);
await I.waitForEnabled(commonConfig.assertEnvTestData, testConfig.TestTimeToWaitForText);
console.log(await I.grabCurrentUrl());
}

async function uploadDocumentEvent(I, caseId, eventName) {
Expand Down

0 comments on commit e0308ac

Please sign in to comment.