fix: duplicate with relationships

This commit is contained in:
Dan Ribbens
2022-09-16 12:26:18 -04:00
parent 4be14a12d0
commit eabb981243
2 changed files with 19 additions and 4 deletions

View File

@@ -169,6 +169,16 @@ describe('fields - relationship', () => {
await saveDocAndAssert(page);
});
test('should duplicate document with relationships', async () => {
await page.goto(url.edit(docWithExistingRelations.id));
await page.locator('.btn.duplicate').first().click();
await expect(page.locator('.Toastify')).toContainText('successfully');
const field = page.locator('#field-relationship .rs__value-container');
await expect(field).toHaveText(relationOneDoc.id);
});
describe('existing relationships', () => {
test('should highlight existing relationship', async () => {
await page.goto(url.edit(docWithExistingRelations.id));