Skip to content

Commit

Permalink
Reinstate original tests with new error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Mar 4, 2024
1 parent ddee475 commit c133082
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions fronts-client/integration/tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

0 comments on commit c133082

Please sign in to comment.