I'm trying to chain the then method after calling drag like this:
cy.get(`[data-itemId="${itemId}"]`)
.drag(`[data-draggableId="${targetDraggableId}"]`)
.then((success: boolean) => assert.isTrue(success));
That's pretty much what is also shown in the readme file, but I get the Typescript error TS2339: Property 'then' does not exist on type 'true'.
Looking at the type declarations for the drag function, I think it either has to return Chainable or a Promise instead of a boolean in order to allow for chaining, or am I missing something?
I'm trying to chain the
thenmethod after callingdraglike this:That's pretty much what is also shown in the readme file, but I get the Typescript error
TS2339: Property 'then' does not exist on type 'true'.Looking at the type declarations for the
dragfunction, I think it either has to returnChainableor aPromiseinstead of abooleanin order to allow for chaining, or am I missing something?