Skip to content

Commit

Permalink
test(app): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 28, 2024
1 parent 9b1be29 commit 2a58b18
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
9 changes: 0 additions & 9 deletions app/integration_test/report_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ void main() {
}
final context = tester.element(find.byType(Scaffold).first);
if (expectedNotTestedGenes.isNotEmpty) {
expect(
find.text(context.l10n.report_no_result_genes, skipOffstage: false),
findsOneWidget,
);
for (final gene in expectedNotTestedGenes) {
final geneCardsFinder = findGeneCard(gene);
expect(
Expand All @@ -140,11 +136,6 @@ void main() {
final geneCard = tester.widgetList(geneCardsFinder).last as GeneCard;
expect(geneCard.color, PharMeTheme.onSurfaceColor);
}
} else {
expect(
find.text(context.l10n.report_no_result_genes, skipOffstage: false),
findsNothing,
);
}
}

Expand Down
6 changes: 1 addition & 5 deletions app/lib/common/widgets/drug_search/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ class DrugSearch extends HookWidget {
return Column(
children: [
Padding(
padding: EdgeInsets.only(
left: PharMeTheme.smallSpace,
right: PharMeTheme.smallSpace,
bottom: PharMeTheme.smallSpace,
),
padding: EdgeInsets.all(PharMeTheme.smallSpace),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: _buildSearchBarItems(context, searchController),
Expand Down
2 changes: 0 additions & 2 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,6 @@
}
}
},
"report_no_result_genes": "Genes with no result",
"@report_no_result_genes": {},

"gene_page_headline": "{gene} report",
"@gene_page_headline": {
Expand Down

0 comments on commit 2a58b18

Please sign in to comment.