-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RFC69 : survival chart with landmark events and hazard ratio (#4740)
Add the group information as label below chart landmark line functionality Dynamic calculation of groups for axis Implement hazard ratio show hazard ratio between every group Remove hazard ratio warning when feature flag is disabled Removed feature flag for survival chart
- Loading branch information
1 parent
4a84511
commit 2e24485
Showing
21 changed files
with
2,448 additions
and
230 deletions.
There are no files selected for viewing
Binary file added
BIN
+120 KB
...al_chart_with_hazard_ratio_table_and_landmark_line_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 added
BIN
+113 KB
...s/reference/survival_chart_with_hazard_ratio_table_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 added
BIN
+62.7 KB
...hart_with_landmark_event_and_hazard_ratio_disabled_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 added
BIN
+69.3 KB
...urvival_chart_with_landmark_event_at_time_point_20_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.
54 changes: 54 additions & 0 deletions
54
end-to-end-test/local/specs/SurvivalChart.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,54 @@ | ||
var goToUrlAndSetLocalStorage = require('../../shared/specUtils') | ||
.goToUrlAndSetLocalStorage; | ||
var waitForNetworkQuiet = require('../../shared/specUtils').waitForNetworkQuiet; | ||
var openGroupComparison = require('../../shared/specUtils').openGroupComparison; | ||
var assertScreenShotMatch = require('../../shared/lib/testUtils') | ||
.assertScreenShotMatch; | ||
var setInputText = require('../../shared/specUtils').setInputText; | ||
var { | ||
setDropdownOpen, | ||
selectClinicalTabPlotType, | ||
getElementByTestHandle, | ||
setCheckboxChecked, | ||
} = require('../../shared/specUtils'); | ||
|
||
const CBIOPORTAL_URL = process.env.CBIOPORTAL_URL.replace(/\/$/, ''); | ||
|
||
describe('Screenshot test for extend survival chart (feature flag)', function() { | ||
this.retries(0); | ||
|
||
before(function() { | ||
openGroupComparison( | ||
`${CBIOPORTAL_URL}/study/summary?id=lgg_ucsf_2014_test_generic_assay&featureFlags=SURVIVAL_PLOT_EXTENDED`, | ||
'chart-container-OS_STATUS', | ||
100000 | ||
); | ||
$('.tabAnchor_survival').click(); | ||
$('[data-test="ComparisonPageSurvivalTabDiv"]').waitForExist({ | ||
timeout: 20000, | ||
}); | ||
}); | ||
it('Survival chart with landmark event and hazard ratio disabled', function() { | ||
var res = browser.checkElement('div[data-test=SurvivalChart]'); | ||
assertScreenShotMatch(res); | ||
}); | ||
it('Survival chart with landmark event at time point 20', function() { | ||
setCheckboxChecked(true, 'input[data-test=landmarkLines]'); | ||
setInputText('input[data-test=landmarkValues]', '20'); | ||
var res = browser.checkElement('div[data-test=SurvivalChart]'); | ||
assertScreenShotMatch(res); | ||
}); | ||
it('Survival chart with hazard ratio table', function() { | ||
setCheckboxChecked(false, 'input[data-test=landmarkLines]'); | ||
setCheckboxChecked(true, 'input[data-test=hazardRatioCheckbox]'); | ||
var res = browser.checkElement('div[data-test=survivalTabView]'); | ||
assertScreenShotMatch(res); | ||
}); | ||
it('Survival chart with hazard ratio table and landmark line', function() { | ||
setCheckboxChecked(true, 'input[data-test=landmarkLines]'); | ||
setInputText('input[data-test=landmarkValues]', '20'); | ||
setCheckboxChecked(true, 'input[data-test=hazardRatioCheckbox]'); | ||
var res = browser.checkElement('div[data-test=survivalTabView]'); | ||
assertScreenShotMatch(res); | ||
}); | ||
}); |
Binary file modified
BIN
+49.8 KB
(130%)
...eference/excluding_unprofiled_samples_survival_tab_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
+53.3 KB
(140%)
...ison_page_survival_tab_exclude_overlapping_samples_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
+132 KB
(160%)
...ison_page_survival_tab_include_overlapping_samples_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
+60.6 KB
(160%)
...mote/screenshots/reference/no_session_survival_tab_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
+59.6 KB
(160%)
...rison_tab_survival_tab_exclude_overlapping_samples_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
+85.8 KB
(170%)
...rison_tab_survival_tab_include_overlapping_samples_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
+60.6 KB
(160%)
.../remote/screenshots/reference/session_survival_tab_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
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
Oops, something went wrong.