-
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 #4396 from alisman/pvTest
Add e2e test for patient view cohort navigation and annotation results
- Loading branch information
Showing
5 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
Binary file added
BIN
+229 KB
...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.
34 changes: 34 additions & 0 deletions
34
end-to-end-test/remote/specs/core/patient.screenshot.spec.js
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var assert = require('assert'); | ||
|
||
const { | ||
goToUrlAndSetLocalStorage, | ||
checkOncoprintElement, | ||
waitForNetworkQuiet, | ||
} = require('../../../shared/specUtils'); | ||
const { assertScreenShotMatch } = require('../../../shared/lib/testUtils'); | ||
|
||
describe('Patient Cohort View Custom Tab Tests', () => { | ||
const patientUrl = `https://www.cbioportal.org/patient?studyId=coadread_tcga_pub&caseId=TCGA-A6-2670#navCaseIds=coadread_tcga_pub:TCGA-A6-2670,coadread_tcga_pub:TCGA-A6-2672`; | ||
|
||
it('Patient page valid after cohort navigation', function() { | ||
goToUrlAndSetLocalStorage(patientUrl); | ||
|
||
waitForNetworkQuiet(); | ||
|
||
$('.nextPageBtn').click(); | ||
|
||
waitForNetworkQuiet(); | ||
|
||
var res = browser.checkDocument(); | ||
assertScreenShotMatch(res); | ||
|
||
// now reload so that we get to the patient via direct initial load (not cohort navigation) | ||
browser.url(browser.getUrl()); | ||
|
||
waitForNetworkQuiet(); | ||
|
||
// check that it matches again | ||
var res2 = browser.checkDocument(); | ||
assertScreenShotMatch(res2); | ||
}); | ||
}); |
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