feat: Plan the next seven days from mobile #1179

Merged
rockachopa merged 5 commits from timmy/1177-plan-the-next-seven-days-from-mobile into main 2026-08-20 13:01:22 +00:00
Showing only changes of commit 5a9cce4a08 - Show all commits

View File

@ -30,6 +30,8 @@ def test_release_artifact_plans_seven_touch_safe_mobile_dates(
with release_server(archives[0], tmp_path, f"http://127.0.0.1:{fake.server_port}") as origin, sync_playwright() as playwright:
browser = playwright.chromium.launch(args=["--ignore-certificate-errors"])
page = browser.new_page(viewport={"width": width, "height": height})
page_errors: list[str] = []
page.on("pageerror", lambda error: page_errors.append(str(error)))
def week_route(route):
if route.request.method == "PUT":
@ -52,7 +54,9 @@ def test_release_artifact_plans_seven_touch_safe_mobile_dates(
page.wait_for_url(origin + "/", wait_until="networkidle")
page.locator('[data-mobile-task="queues"]').click()
page.locator('[data-mobile-queue="week"]').click()
page.wait_for_timeout(100)
assert not page_errors, f"Week Ahead launch raised: {page_errors}"
expect(page.locator("#plan-today-title")).to_have_text("Plan Week Ahead")
dates = page.locator("#week-plan-dates button")
expect(dates).to_have_count(7)