From c13308227fb6d8458b7a2248b8ba5d9d105c87de Mon Sep 17 00:00:00 2001 From: Jonathon Herbert Date: Mon, 4 Mar 2024 14:52:32 +0000 Subject: [PATCH] Reinstate original tests with new error handling --- fronts-client/integration/tests/main.spec.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/fronts-client/integration/tests/main.spec.js b/fronts-client/integration/tests/main.spec.js index 8de68cd06e..1432717b00 100644 --- a/fronts-client/integration/tests/main.spec.js +++ b/fronts-client/integration/tests/main.spec.js @@ -193,23 +193,20 @@ test('Drag from clipboard to full collection - accept modal', async (t) => { const externalSnap = await externalSnapLink(); const fullCollectionCount = await allCards(2).count; - console.log({ fullCollectionCount }); - await t .dragToElement(externalSnap, collectionDropZone(2, 2)) - .expect(allCards(2).innerText) - .eql(fullCollectionCount) - .debug + .click(optionsModalChoice('options-modal-confirm')) + .expect(allCards(2).count) + .eql(fullCollectionCount - 1); // there are now 19 articles and 1 snap }); test('Drag from clipboard to full collection - cancel modal', async (t) => { const externalSnap = await externalSnapLink(); const fullCollectionCount = await allCards(2).count; - console.log({ fullCollectionCount }); - await t .dragToElement(externalSnap, collectionDropZone(2, 2)) - .expect(allCards(2).innerText) + .click(optionsModalChoice('options-modal-cancel')) + .expect(allCards(2).count) .eql(fullCollectionCount); // there are still 20 cards });