Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update links for functional tests #842

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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