This commit is contained in:
@@ -114,6 +114,11 @@ test('cross calendar: top-bar tab opens, grid renders, month nav works', async (
|
||||
test('cross calendar: a space with activity shows its dot + day panel groups by space', async ({ page }) => {
|
||||
const fatalErrors = trackFatalErrors(page);
|
||||
const { caseTitle, spaceId } = await createAndOpenCaseSpace(page, 'E2E横断カレンダー');
|
||||
|
||||
// The cross-cal dot reflects a space's activity for the day — task or
|
||||
// event (see issue #804: it used to be task-only, leaving single-day
|
||||
// events with no cross-calendar indicator). This space has an event and
|
||||
// no task, so the dot must come from the event alone.
|
||||
const eventTitle = `横断予定-${Date.now()}`;
|
||||
await addTodayEvent(page, eventTitle);
|
||||
|
||||
@@ -123,10 +128,12 @@ test('cross calendar: a space with activity shows its dot + day panel groups by
|
||||
|
||||
const today = e2eLocalToday();
|
||||
const todayCell = page.getByTestId(`cross-cal-day-${today}`);
|
||||
// Today's cell carries the activity dot for our space.
|
||||
// Today's cell carries the activity dot for our space (event-gated only).
|
||||
await expect(todayCell.getByTestId(`cross-cal-dot-${spaceId}`)).toBeVisible({ timeout: 10_000 });
|
||||
|
||||
// Click the day → panel grouped by space, with our space heading + its event.
|
||||
// Click the day → panel grouped by space, with our space heading and its
|
||||
// event (a space qualifies for the panel with either task or event
|
||||
// activity — see CrossSpaceCalendar.tsx's activeSpaces filter).
|
||||
await todayCell.click();
|
||||
const panel = page.getByTestId('cross-cal-day-panel');
|
||||
await expect(panel).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user