Skip to content

Commit

Permalink
Add study view custom tabs e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Nov 29, 2023
1 parent 332ffac commit a9d8530
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions end-to-end-test/remote/specs/core/customTabs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function runTests(pageName, url, tabLocation) {
"merely switching tabs didn't call mount function"
);

// the following two commands are inteded to trigger
// remount of MSKTabs and thus remount of custom tab
// the following two commands are intended to trigger
// remount of MSKTabs and thus remount of custom tab+
// kinda annoying, i know
switch (tabLocation) {
case 'RESULTS_PAGE':
Expand Down Expand Up @@ -292,6 +292,8 @@ function runTests(pageName, url, tabLocation) {

const resultsUrl = `${CBIOPORTAL_URL}/results?cancer_study_list=coadread_tcga_pub&cancer_study_id=coadread_tcga_pub&genetic_profile_ids_PROFILE_MUTATION_EXTENDED=coadread_tcga_pub_mutations&genetic_profile_ids_PROFILE_COPY_NUMBER_ALTERATION=coadread_tcga_pub_gistic&Z_SCORE_THRESHOLD=2.0&case_set_id=coadread_tcga_pub_nonhypermut&gene_list=KRAS%20NRAS%20BRAF`;

const studyUrl = `${CBIOPORTAL_URL}/study/summary?id=ucec_tcga_pub`;

const patientUrl = `${CBIOPORTAL_URL}/patient?studyId=ucec_tcga_pub&caseId=TCGA-AP-A053#navCaseIds=ucec_tcga_pub:TCGA-AP-A053,ucec_tcga_pub:TCGA-BG-A0M8,ucec_tcga_pub:TCGA-BG-A0YV,ucec_tcga_pub:TCGA-BS-A0U8`;

const comparisonUrl = `${CBIOPORTAL_URL}/comparison?comparisonId=61845a6ff8f71021ce56e22b`;
Expand Down Expand Up @@ -381,6 +383,8 @@ describe('Patient Cohort View Custom Tab Tests', () => {

runTests('ResultsView', resultsUrl, 'RESULTS_PAGE');

runTests('StudyView', studyUrl, 'STUDY_PAGE');

runTests('PatientView', patientUrl, 'PATIENT_PAGE');

runTests('ComparisonPage', comparisonUrl, 'COMPARISON_PAGE');

0 comments on commit a9d8530

Please sign in to comment.