fix: close rollover planner before Today handoff (Closes #1268)
This commit is contained in:
1 parent
d27a481d96
commit
14b3fb4048
4 files changed
+20
-2
No files matched your search
@@ -88,7 +88,16 @@ def test_release_artifact_plans_hands_off_and_opens_next_mobile_issue(tmp_path:
|
||||
expect(page.locator("#issue-sheet-title")).to_have_text("Ship mobile capture")
|
||||
expect(page.locator("#send-issue-comment-next")).to_be_visible()
|
||||
assert page.evaluate("document.documentElement.scrollWidth <= window.innerWidth")
|
||||
expect(page.locator("#plan-today-sheet")).to_be_hidden()
|
||||
try:
|
||||
expect(page.locator("#plan-today-sheet")).to_be_hidden()
|
||||
except AssertionError as error:
|
||||
raise AssertionError(page.evaluate("""() => ({
|
||||
hidden:document.querySelector('#plan-today-sheet').hidden,
|
||||
state:history.state,
|
||||
bodyClass:document.body.className,
|
||||
status:document.querySelector('#my-work-action-status').textContent,
|
||||
error:document.querySelector('#plan-today-error').textContent,
|
||||
})""")) from error
|
||||
|
||||
page.locator("#close-issue-sheet").click()
|
||||
if page.locator("#plan-today-sheet").is_visible():
|
||||
|
||||
Reference in new issue
Block a user