Skip to content

Commit

Permalink
test(app): fix drug page test
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Mar 22, 2024
1 parent f718878 commit 8e83952
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/integration_test/drugs_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main() {
source: 'CPIC',
guidelineName: 'cpic name',
guidelineUrl: 'cpic url',
implications: {'CYP2C9': 'normal metabolization'},
implications: {'CYP2C9': 'Normal Metabolizer'},
recommendation: 'default dose',
comments: 'comments')
],
Expand Down Expand Up @@ -111,11 +111,13 @@ void main() {
expect(find.text(testDrug.annotations.drugclass), findsOneWidget);
expect(find.text(testDrug.annotations.indication), findsOneWidget);
expect(
find.text(testDrug.guidelines.first.annotations.recommendation),
find.textContaining(
testDrug.guidelines.first.annotations.recommendation,
),
findsOneWidget,
);
expect(
find.text(testDrug.guidelines.first.annotations.implication),
find.textContaining(testDrug.guidelines.first.annotations.implication),
findsOneWidget,
);
expect(
Expand Down
5 changes: 5 additions & 0 deletions pharme.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"citalopram",
"clopidogrel",
"CPIC",
"Cupertino",
"diplotype",
"diplotypes",
"drugclass",
Expand All @@ -50,8 +51,11 @@
"Hasso",
"irinotecan",
"Keycloak",
"lookupkey",
"MedlinePlus",
"Metabolizer",
"mocktail",
"NSAID",
"omeprazole",
"pantoprazole",
"paroxetine",
Expand All @@ -62,6 +66,7 @@
"PharMe",
"phenoconversion",
"Plattner",
"rxnorm",
"sertraline",
"simvastatin",
"tacrolimus",
Expand Down

0 comments on commit 8e83952

Please sign in to comment.