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.
TypeScript canva-alternativecanvasdesigndesign-tooldrag-and-dropeditorgraphic-designkonvanextjsopen-sourcereactself-hostedtemplatestypescript
test(e2e): pin the pptx toast assertion to the visible title
Ashiq Hussain Mirc729fd3a591d
diff --git a/tests/e2e/pptx-export.spec.ts b/tests/e2e/pptx-export.spec.tsindex 1ac2924..070d6d5 100644--- a/tests/e2e/pptx-export.spec.ts+++ b/tests/e2e/pptx-export.spec.ts@@ -67,8 +67,10 @@ print('PPTX OK: ' + str(len(names)) + ' parts')`], { encoding: 'utf-8' })expect(out.trim()).toMatch(/^PPTX OK: \d+ parts$/)- // the toast reports the export- await expect(page.getByText(/pptx downloaded/i)).toBeVisible({ timeout: 15_000 })+ // the toast reports the export — anchored: Radix's ToastProvider also+ // renders a visually-hidden announcer ("Notification PPTX downloaded…")+ // for screen readers; the ^ anchor matches only the visible title.+ await expect(page.getByText(/^PPTX downloaded/i)).toBeVisible({ timeout: 15_000 })expect(errors, `page errors: ${errors.join(' | ')}`).toEqual([])})})