This commit is contained in:
@@ -353,19 +353,19 @@ test('invite picker lists same-org member, excludes the stranger', async ({ page
|
||||
expect(fatalErrors, `fatal errors:\n${fatalErrors.join('\n')}`).toEqual([]);
|
||||
});
|
||||
|
||||
// 4. NO visibility selector. The space chat shows the static visibility NOTE and
|
||||
// never the removed selector control.
|
||||
test('space chat shows the static visibility note, not a selector', async ({ page }) => {
|
||||
// 4. NO visibility control at all. Space-chat visibility is a fixed member-only
|
||||
// scope, so neither the old selector nor the static note chip should render —
|
||||
// there is nothing for the user to read or choose.
|
||||
test('space chat exposes neither a visibility selector nor a visibility note (fixed member-only scope)', async ({ page }) => {
|
||||
const fatalErrors = trackFatalErrors(page);
|
||||
|
||||
await login(page, MANAGER.email, MANAGER.password);
|
||||
await openSharedSpace(page);
|
||||
await openSeededChat(page);
|
||||
|
||||
// The static note is present; the removed selector is absent.
|
||||
await expect(page.getByTestId('space-chat-visibility-note')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.getByTestId('space-chat-visibility-note')).toContainText('メンバーに公開');
|
||||
// Both the removed selector and the removed static-note chip are absent.
|
||||
await expect(page.getByTestId('space-chat-visibility')).toHaveCount(0);
|
||||
await expect(page.getByTestId('space-chat-visibility-note')).toHaveCount(0);
|
||||
|
||||
expect(fatalErrors, `fatal errors:\n${fatalErrors.join('\n')}`).toEqual([]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user