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 19, 2019
1 parent a1a4b5c commit 6edcc41
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 327 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>
);
}
}
251 changes: 0 additions & 251 deletions src/shared/components/annotation/oncokb/OncoKB.spec.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions src/test/OncoKbMockUtils.ts

This file was deleted.

0 comments on commit 6edcc41

Please sign in to comment.