enh: make clone function use ocs

Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
grnd-alt
2024-12-19 14:05:32 +01:00
parent 22bb8d65e9
commit 60b7357ef4
3 changed files with 6 additions and 5 deletions

View File

@@ -303,8 +303,8 @@ describe('Card', function () {
})
})
it('clone card', () => {
cy.intercept({ method: 'POST', url: '**/apps/deck/cards/*/clone' }).as('clone')
it.only('clone card', () => {
cy.intercept({ method: 'POST', url: '**/apps/deck/**/cards/*/clone' }).as('clone')
cy.get('.card:contains("Hello world")').should('be.visible').click()
cy.get('#app-sidebar-vue')
.find('.ProseMirror h1').contains('Hello world').should('be.visible')