server: Fix duplicating notes with relationships (closes #308)

This commit is contained in:
Elian Doran
2024-08-09 22:31:30 +03:00
parent ddc82853fc
commit f297105c25
4 changed files with 14 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
import { test, expect } from '@playwright/test';
test("Can duplicate note with broken links", async ({ page }) => {
await page.goto(`http://localhost:8082/#2VammGGdG6Ie`);
await page.locator('.tree-wrapper .fancytree-active').getByText('Note map').click({ button: 'right' });
await page.getByText('Duplicate subtree').click();
await expect(page.locator(".toast-body")).toBeHidden();
await expect(page.locator('.tree-wrapper').getByText('Note map (dup)')).toBeVisible();
});