-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4391 from alisman/nonprofiled
Add alerts on patient view alteration tables when one sample of many is not profiled
- Loading branch information
Showing
13 changed files
with
644 additions
and
810 deletions.
There are no files selected for viewing
Binary file modified
BIN
+155 Bytes
(100%)
...ference/patient_page_valid_after_cohort_navigation_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+599 Bytes
(100%)
...reenshots/reference/patient_view_lgg_ucsf_2014_p04_element_chrome_1600x1000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
var assert = require('assert'); | ||
var goToUrlAndSetLocalStorage = require('../../../shared/specUtils') | ||
.goToUrlAndSetLocalStorage; | ||
|
||
var { | ||
goToUrlAndSetLocalStorage, | ||
getElementByTestHandle, | ||
} = require('../../../shared/specUtils'); | ||
|
||
const CBIOPORTAL_URL = process.env.CBIOPORTAL_URL.replace(/\/$/, ''); | ||
|
||
describe('patient page', function() { | ||
this.retries(2); | ||
before(() => { | ||
goToUrlAndSetLocalStorage(CBIOPORTAL_URL); | ||
}); | ||
|
||
it('should show all samples button for single sample view of multi sample patient', function() { | ||
it('should show "all samples button" for single sample view of multi sample patient', function() { | ||
goToUrlAndSetLocalStorage( | ||
`${CBIOPORTAL_URL}/patient?studyId=lgg_ucsf_2014&tab=summaryTab&sampleId=P04_Pri` | ||
); | ||
|
||
$('.//*[text()[contains(.,"Show all")]]').waitForExist(); | ||
$('button=Show all 4 samples').waitForExist(); | ||
}); | ||
|
||
assert.equal( | ||
$('.//*[text()[contains(.,"Show all")]]') | ||
.getText() | ||
.toLowerCase(), | ||
'show all 4 samples'.toLowerCase() | ||
it('show appropriate messaging when a patient has only some profiled samples', () => { | ||
goToUrlAndSetLocalStorage( | ||
`${CBIOPORTAL_URL}/patient?studyId=mpcproject_broad_2021&caseId=MPCPROJECT_0013` | ||
); | ||
|
||
// there is one partial profile message for CNA and sample 2 | ||
getElementByTestHandle('patientview-mutation-table').waitForDisplayed(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 0 additions & 101 deletions
101
src/pages/patientView/copyNumberAlterations/CopyNumberTableWrapper.spec.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.