Skip to content

Commit

Permalink
fixed broken tests and screenshots
Browse files Browse the repository at this point in the history
Signed-off-by: Onur Sumer <s.onur.sumer@gmail.com>
  • Loading branch information
onursumer committed Nov 13, 2019
1 parent 089c7b6 commit cf5cdee
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions end-to-end-test/remote/specs/core/results.logic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ describe('single study query', function() {
$('a.tabAnchor_mutations').waitForExist(10000);
$('a.tabAnchor_mutations').click();

$('[data-test="germlineMutationRate"]').waitForExist(60000);
var text = browser.getText('[data-test="germlineMutationRate"]')
$('[data-test="mutation-rate-summary"]').waitForExist(60000);
var text = browser.getText('[data-test="mutation-rate-summary"]');
// check germline mutation rate
assert(text.search('8.2%') > -1);
// check somatic mutation
var text = browser.getText('[data-test="somaticMutationRate"]')
assert(text.search('3.5%') > -1);

});
Expand Down
34 changes: 18 additions & 16 deletions src/pages/resultsView/mutation/MutationRateSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,24 @@ export default class MutationRateSummary extends React.Component<IMutationRateSu
render()
{
return (
<MutationStatusSelector
filter={this.props.mutationStatusFilter}
onSelect={this.props.onMutationStatusSelect}
rates={{
"Germline": this.germlineMutationRate,
"Somatic": this.somaticMutationRate
}}
somaticContent={{
title: "Somatic Mutation Frequency",
description: `Percentage of samples with a somatic mutation in ${this.props.hugoGeneSymbol}`
}}
germlineContent={this.germlineMutationRate > 0 ? {
title: "Germline Mutation Frequency",
description: `Percentage of samples with a germline mutation in ${this.props.hugoGeneSymbol}`
}: undefined}
/>
<span data-test="mutation-rate-summary">
<MutationStatusSelector
filter={this.props.mutationStatusFilter}
onSelect={this.props.onMutationStatusSelect}
rates={{
"Germline": this.germlineMutationRate,
"Somatic": this.somaticMutationRate
}}
somaticContent={{
title: "Somatic Mutation Frequency",
description: `Percentage of samples with a somatic mutation in ${this.props.hugoGeneSymbol}`
}}
germlineContent={this.germlineMutationRate > 0 ? {
title: "Germline Mutation Frequency",
description: `Percentage of samples with a germline mutation in ${this.props.hugoGeneSymbol}`
}: undefined}
/>
</span>
);
}
}

0 comments on commit cf5cdee

Please sign in to comment.