Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,20 @@ test.describe('Large Glossary Performance Tests', () => {
});

test('should handle drag and drop for term reordering', async ({ page }) => {
test.slow();

await dragAndDropTerm(page, 'Term_10', 'Term_1');

await confirmationDragAndDropGlossary(page, 'Term_10', 'Term_1');

await expect(page.getByTestId('Term_10')).not.toBeVisible();

const termRes = page.waitForResponse('/api/v1/glossaryTerms?*');
const termRes = page.waitForResponse(
(res) =>
res.url().includes('/api/v1/glossaryTerms') &&
res.url().includes('directChildrenOf=') &&
res.status() === 200
);

// verify the term is moved under the parent term
await page.getByTestId('expand-collapse-all-button').click();
Expand Down
Loading