Compare commits

..

No commits in common. "3c35aa31c1f3db85b5c671560148440c198223fd" and "306a20c37f2f312826adf1c869a88e19970d1b03" have entirely different histories.

2 changed files with 1 additions and 20 deletions

View File

@ -69,10 +69,7 @@ def test_release_artifact_reschedules_active_today_into_week_ahead(
expect(page.locator("#issue-sheet-title")).to_have_text("Ship mobile capture")
if page.locator("#plan-today-sheet").is_visible():
page.locator("#cancel-plan-today").click()
issue_sheet = page.locator("#issue-sheet")
if issue_sheet.is_visible():
page.locator("#close-issue-sheet").click()
expect(issue_sheet).to_be_hidden()
page.locator("#close-issue-sheet").click()
if page.locator("#plan-today-sheet").is_visible():
page.locator("#cancel-plan-today").click()

View File

@ -1,16 +0,0 @@
from pathlib import Path
ROOT = Path(__file__).parents[1]
def test_week_reschedule_journey_closes_only_a_visible_issue_sheet():
journey = (
ROOT / "tests" / "e2e" / "test_mobile_today_week_reschedule_release.py"
).read_text()
assert 'issue_sheet = page.locator("#issue-sheet")' in journey
assert "if issue_sheet.is_visible():" in journey
guarded_close = journey.split("if issue_sheet.is_visible():", 1)[1].split("\n", 2)[1]
assert 'page.locator("#close-issue-sheet").click()' in guarded_close
assert "expect(issue_sheet).to_be_hidden()" in journey