diff --git a/tests/e2e/test_mobile_week_ahead_release.py b/tests/e2e/test_mobile_week_ahead_release.py index 30a3082..ed653d8 100644 --- a/tests/e2e/test_mobile_week_ahead_release.py +++ b/tests/e2e/test_mobile_week_ahead_release.py @@ -110,6 +110,21 @@ def test_release_artifact_plans_seven_touch_safe_mobile_dates( f"DTEND:{tomorrow}T110000\r\nRRULE:FREQ=DAILY;COUNT=3\r\n" f"EXDATE:{excluded}T100000\r\nEND:VEVENT\r\nEND:VCALENDAR" ) + unsupported_title = "Private monthly board review" + unsupported_calendar = ( + "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\n" + f"SUMMARY:{unsupported_title}\r\nDTSTART:{tomorrow}T100000\r\n" + f"DTEND:{tomorrow}T110000\r\nRRULE:FREQ=MONTHLY;BYDAY=1FR\r\n" + "END:VEVENT\r\nEND:VCALENDAR" + ) + page.locator("#week-capacity-file").set_input_files({ + "name": "unsupported.ics", "mimeType": "text/calendar", "buffer": unsupported_calendar.encode() + }) + expect(page.locator("#week-capacity-status")).to_contain_text( + "1 recurring event could not be counted" + ) + expect(page.locator("#apply-week-capacities")).to_be_disabled() + expect(capacity_import).not_to_contain_text(unsupported_title) page.locator("#week-capacity-file").set_input_files({ "name": "availability.ics", "mimeType": "text/calendar", "buffer": calendar.encode() })