From 8e83952afd5300a5dbaf526d41a55bf66a483931 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Fri, 22 Mar 2024 16:09:32 +0100 Subject: [PATCH] test(app): fix drug page test --- app/integration_test/drugs_test.dart | 8 +++++--- pharme.code-workspace | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/integration_test/drugs_test.dart b/app/integration_test/drugs_test.dart index 3967a55a..eb2812d9 100644 --- a/app/integration_test/drugs_test.dart +++ b/app/integration_test/drugs_test.dart @@ -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') ], @@ -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( diff --git a/pharme.code-workspace b/pharme.code-workspace index 5ddc105f..56e2a8a8 100644 --- a/pharme.code-workspace +++ b/pharme.code-workspace @@ -40,6 +40,7 @@ "citalopram", "clopidogrel", "CPIC", + "Cupertino", "diplotype", "diplotypes", "drugclass", @@ -50,8 +51,11 @@ "Hasso", "irinotecan", "Keycloak", + "lookupkey", "MedlinePlus", "Metabolizer", + "mocktail", + "NSAID", "omeprazole", "pantoprazole", "paroxetine", @@ -62,6 +66,7 @@ "PharMe", "phenoconversion", "Plattner", + "rxnorm", "sertraline", "simvastatin", "tacrolimus",