import { test, expect } from '@playwright/test' import { login } from './helpers' test('authenticated user can open workspace administration', async ({ page }) => { test.skip(!process.env.E2E_USERNAME || !process.env.E2E_PASSWORD, 'Set E2E_USERNAME and E2E_PASSWORD') expect(await login(page)).toBe(true) await page.goto('/settings/workspaces') await expect(page.getByRole('heading', { name: /organizations and workspaces/i })).toBeVisible() await expect(page.getByText(/your workspaces/i)).toBeVisible() }) test('dashboard keeps the profile entry while removing redundant header controls', async ({ page }) => { test.skip(!process.env.E2E_USERNAME || !process.env.E2E_PASSWORD, 'Set E2E_USERNAME and E2E_PASSWORD') expect(await login(page)).toBe(true) await page.goto('/dashboard') await expect(page.getByRole('link', { name: /open profile/i })).toBeVisible() await expect(page.getByRole('button', { name: 'Help' })).toHaveCount(0) await expect(page.getByRole('button', { name: 'Customize' })).toHaveCount(0) })