test: cover private recurrence additions on mobile
This commit is contained in:
parent
ab74426cbc
commit
15be0ec026
|
|
@ -104,11 +104,12 @@ def test_release_artifact_plans_seven_touch_safe_mobile_dates(
|
||||||
private_title = "Private customer planning"
|
private_title = "Private customer planning"
|
||||||
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y%m%d")
|
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y%m%d")
|
||||||
excluded = (date.today() + timedelta(days=2)).strftime("%Y%m%d")
|
excluded = (date.today() + timedelta(days=2)).strftime("%Y%m%d")
|
||||||
|
added = (date.today() + timedelta(days=4)).strftime("%Y%m%d")
|
||||||
calendar = (
|
calendar = (
|
||||||
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\n"
|
"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nBEGIN:VEVENT\r\n"
|
||||||
f"SUMMARY:{private_title}\r\nDTSTART:{tomorrow}T100000\r\n"
|
f"SUMMARY:{private_title}\r\nDTSTART:{tomorrow}T100000\r\n"
|
||||||
f"DTEND:{tomorrow}T110000\r\nRRULE:FREQ=DAILY;COUNT=3\r\n"
|
f"DTEND:{tomorrow}T110000\r\nRRULE:FREQ=DAILY;COUNT=3\r\n"
|
||||||
f"EXDATE:{excluded}T100000\r\nEND:VEVENT\r\nEND:VCALENDAR"
|
f"EXDATE:{excluded}T100000\r\nRDATE:{added}T100000\r\nEND:VEVENT\r\nEND:VCALENDAR"
|
||||||
)
|
)
|
||||||
unsupported_title = "Private monthly board review"
|
unsupported_title = "Private monthly board review"
|
||||||
unsupported_calendar = (
|
unsupported_calendar = (
|
||||||
|
|
@ -138,6 +139,9 @@ def test_release_artifact_plans_seven_touch_safe_mobile_dates(
|
||||||
expect(page.locator("#week-capacity-days .week-capacity-day").nth(2)).to_contain_text(
|
expect(page.locator("#week-capacity-days .week-capacity-day").nth(2)).to_contain_text(
|
||||||
"420 min available"
|
"420 min available"
|
||||||
)
|
)
|
||||||
|
expect(page.locator("#week-capacity-days .week-capacity-day").nth(3)).to_contain_text(
|
||||||
|
"420 min available"
|
||||||
|
)
|
||||||
expect(capacity_import).not_to_contain_text(private_title)
|
expect(capacity_import).not_to_contain_text(private_title)
|
||||||
for control in (
|
for control in (
|
||||||
page.locator("#cancel-week-capacity-import"),
|
page.locator("#cancel-week-capacity-import"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user