Skip to content

Commit a4e19be

Browse files
committed
test(e2e): stabilize plugin retraction witness
1 parent de839c4 commit a4e19be

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

e2e/ui/workspace-team-interactions.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,15 @@ test('[P1] same-id Personal plugin stays masked by Team projection until retract
755755
resourceMocks.retract();
756756
await page.evaluate(() => window.dispatchEvent(new Event('focus')));
757757
await expect(card).toHaveCount(0, { timeout: 15_000 });
758+
await page.getByTestId('entry-nav-plugins').click();
759+
await expect(pluginsView).toBeVisible();
758760
await pluginsView.getByTestId('plugins-tab-installed').click();
759761
await expect(card).toBeVisible();
760762
await expect(card.getByText('Shared with team', { exact: true })).toHaveCount(0);
761763
await card.getByTestId(`plugins-card-more-${LOCAL_PLUGIN.id}`).click();
762-
await expect(card.getByRole('menuitem', { name: 'Share with team' })).toHaveCount(0);
764+
// Active members may publish their own Personal resources; managing or
765+
// removing somebody else's Team projection remains owner/admin-only.
766+
await expect(card.getByRole('menuitem', { name: 'Share with team' })).toBeVisible();
763767
await expect(card.getByRole('menuitem', { name: 'Remove from team' })).toHaveCount(0);
764768
});
765769

0 commit comments

Comments
 (0)