Skip to content

Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.

fix(ci): hide the Next.js dev-tools overlay in plugins-panel e2e (#20)

Ashiq Hussain Mir34411d02b96c
diff --git a/tests/e2e/plugins-panel.spec.ts b/tests/e2e/plugins-panel.spec.ts
index 78881b0..4f02d99 100644
--- a/tests/e2e/plugins-panel.spec.ts
+++ b/tests/e2e/plugins-panel.spec.ts
@@ -18,6 +18,8 @@ test.describe('Apps panel with plugin runtime mounted (flag off)', () => {
page.on('pageerror', (err) => errors.push(String(err)))
await page.goto('/')
+ // Next.js dev tools indicator overlays the first rail button in dev mode
+ await page.addStyleTag({ content: 'nextjs-portal { display: none !important; }' })
await page.getByRole('button', { name: /start designing/i }).first().click()
await expect(page.getByLabel('Create a design')).toBeVisible()