1
0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-08-27 21:36:32 +02:00

🐛 Fix remember decision when team hero banner is closed ()

This commit is contained in:
Alejandro 2025-01-27 11:53:10 +01:00 committed by GitHub
commit 8f48396556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 38 additions and 1 deletions
frontend/playwright/ui/specs

View file

@ -113,3 +113,21 @@ test("Bug 9443, Admin can not demote owner", async ({ page }) => {
await expect(page.getByText("Owner")).toBeVisible();
await expect(page.getByRole("combobox", { name: "Owner" })).toHaveCount(0);
});
test("Bug 9927, Don't show the banner to invite team members if the user has dismissed it", async ({
page,
}) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.setupDashboardFull();
await DashboardPage.mockRPC(
page,
"get-projects?team-id=*",
"dashboard/get-projects-second-team.json",
);
await dashboardPage.goToSecondTeamDashboard();
await expect(page.getByText("Team Up")).toBeVisible();
await page.getByRole("button", { name: "Close" }).click();
await page.reload();
await expect(page.getByText("Second team")).toBeVisible();
await expect(page.getByText("Team Up")).not.toBeVisible();
});