OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
test(dashboard): project creation spec waits for the sidebar menu to open
Carl-Gerhard Lindesvärdae316ba69361
diff --git a/apps/start/e2e/project-create.spec.ts b/apps/start/e2e/project-create.spec.tsindex 95bc1444d..41c7c805a 100644--- a/apps/start/e2e/project-create.spec.ts+++ b/apps/start/e2e/project-create.spec.ts@@ -1,4 +1,5 @@import { expect, test } from './fixtures';+import { openMenu } from './org-helpers';test('a project can be created from the organization page', async ({page,@@ -7,8 +8,10 @@ test('a project can be created from the organization page', async ({const projectName = `E2E project ${Date.now()}`;await page.goto(`/${seed.organizationId}`);await page.waitForLoadState('networkidle');- // The sidebar action button cycles its label; the menu behind it is stable.- await page.getByRole('button', { name: /Create a project/ }).click();+ await openMenu(+ page,+ page.getByRole('button', { name: /Create a project|Invite a user/ })+ );await page.getByRole('menuitem', { name: 'Create a project' }).click();const dialog = page.getByRole('dialog');