mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
test(e2e): mark the medication-wizard variants and AI-flow group slow
The wizard-variant specs (rolling/weekdays/compose/monthly/biweekly/oneshot) and the document-AI flow group are legitimately long multi-step flows; under a loaded CI runner they race the default 30s and flake green paths — a different one fails each run. Give them the tripled timeout, matching the already-slow daily wizard.
This commit is contained in:
1 parent
76277ca31d
commit
1dd9b92b7d
7 files changed
+13
No files matched your search
@@ -104,6 +104,13 @@ test.describe("document vault — AI assist + content search", () => {
|
||||
await ensureVaultAiFixture();
|
||||
});
|
||||
|
||||
// These AI flows drive several mocked provider round-trips per test; on a
|
||||
// loaded CI runner they race the default 30s, so the whole group earns the
|
||||
// tripled timeout rather than flaking green paths.
|
||||
test.beforeEach(() => {
|
||||
test.slow();
|
||||
});
|
||||
|
||||
// ── (a) Review-first assist: prefill → edit → save, nothing auto-committed ──
|
||||
|
||||
test("assist prefills an editable draft that only saves on commit", async ({
|
||||
|
||||
@@ -32,6 +32,7 @@ test.describe("medication wizard — bi-weekly", () => {
|
||||
test("creates an every-2-weeks Monday medication end-to-end", async ({
|
||||
page,
|
||||
}) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
const capture = mockMedicationsApi(page, {
|
||||
id: STUB_MEDICATION_ID,
|
||||
|
||||
@@ -33,6 +33,7 @@ test.describe("medication wizard — compose-mode", () => {
|
||||
test.use({ storageState: STORAGE_STATE_PATH });
|
||||
|
||||
test("creates a 2-schedule medication end-to-end", async ({ page }) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
|
||||
const listEntry = {
|
||||
|
||||
@@ -30,6 +30,7 @@ test.describe("medication wizard — monthly", () => {
|
||||
test("creates a monthly-on-day-15 medication end-to-end", async ({
|
||||
page,
|
||||
}) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
const capture = mockMedicationsApi(page, {
|
||||
id: STUB_MEDICATION_ID,
|
||||
|
||||
@@ -34,6 +34,7 @@ test.describe("medication wizard — one-shot", () => {
|
||||
test.use({ storageState: STORAGE_STATE_PATH });
|
||||
|
||||
test("creates a single-dose medication end-to-end", async ({ page }) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
const capture = mockMedicationsApi(page, {
|
||||
id: STUB_MEDICATION_ID,
|
||||
|
||||
@@ -33,6 +33,7 @@ test.describe("medication wizard — rolling", () => {
|
||||
test("creates an every-7-days-from-last-intake medication end-to-end", async ({
|
||||
page,
|
||||
}) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
const capture = mockMedicationsApi(page, {
|
||||
id: STUB_MEDICATION_ID,
|
||||
|
||||
@@ -29,6 +29,7 @@ test.describe("medication wizard — weekdays", () => {
|
||||
test.use({ storageState: STORAGE_STATE_PATH });
|
||||
|
||||
test("creates a Mo/Mi/Fr medication end-to-end", async ({ page }) => {
|
||||
test.slow();
|
||||
await stubDashboardAnalytics(page);
|
||||
const capture = mockMedicationsApi(page, {
|
||||
id: STUB_MEDICATION_ID,
|
||||
|
||||
Reference in new issue
Block a user