diff --git a/fronts-client/integration/tests/main.spec.js b/fronts-client/integration/tests/main.spec.js index 754828dc27..b0c67f83c0 100644 --- a/fronts-client/integration/tests/main.spec.js +++ b/fronts-client/integration/tests/main.spec.js @@ -189,15 +189,23 @@ test('Clipboard - drop depth', async (t) => { .eql(2); }); -test('Drag from clipboard to full collection - accept modal', async (t) => { +test.only('Drag from clipboard to full collection - accept modal', async (t) => { const externalSnap = await externalSnapLink(); const fullCollectionCount = await allCards(2).count; await t .dragToElement(externalSnap, collectionDropZone(2, 2)) - .click(optionsModalChoice('options-modal-confirm')) - .expect(allCards(2).count) - .eql(fullCollectionCount - 1); // there are now 19 articles and 1 snap + .click(optionsModalChoice('options-modal-confirm')); + + const cardsSelector = allCards(2); + const allCardsCount = await cardsSelector.count; + + console.log({ allCardsCount, fullCollectionCount }); + + for (let i = 0; i < allCardsCount; i++) { + const elementText = await cardsSelector.nth(i).innerText; + console.log({ i, elementText }); + } }); test('Drag from clipboard to full collection - cancel modal', async (t) => {