test: expand app-shell e2e coverage and stabilize flaky flows

* test: expand e2e app shell coverage and stabilize flaky scenarios

* fix(e2e): stabilize dashboard flow and frontend ci gates
This commit is contained in:
Daniel Volz
2026-03-27 06:51:04 +01:00
committed by GitHub
parent f46043970f
commit 7f2ef09df5
12 changed files with 959 additions and 54 deletions
@@ -908,7 +908,15 @@ describe("MedicationsPage form interactions", () => {
}
if (url === "/api/medication-enrichment/search?q=Aspirin&limit=12") {
return new Promise((resolve) => {
return new Promise<{
ok: boolean;
json: () => Promise<{
query: string;
normalizedQuery: string;
hasMore: boolean;
results: ReturnType<typeof createMedicationEnrichmentSearchResults>;
}>;
}>((resolve) => {
resolveLoadMore = resolve;
});
}
@@ -1646,7 +1654,7 @@ describe("MedicationsPage form interactions", () => {
}
if (url === "/api/medication-enrichment/enrich") {
return new Promise((resolve) => {
return new Promise<{ ok: boolean; json: () => Promise<unknown> }>((resolve) => {
resolveEnrichment = resolve;
});
}