1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01:00
Anish Aggarwal e65eeb2939
added cypress tests (#4420)
* created editable-voids cypress test

* created markdown-preview cypress test

* created images cypress test

* created huge-document cypress test

* added hovering-toolbar, and forced-layout cypress tests

* added embeds cypress test

No changeset as it's adding tests for the examples.
2021-08-07 08:28:22 -07:00

15 lines
291 B
TypeScript

describe('embeds example', () => {
const slateEditor = 'div[data-slate-editor="true"]'
beforeEach(() => {
cy.visit('examples/embeds')
})
it('contains embeded', () => {
cy.get(slateEditor)
.find('iframe')
.should('exist')
.should('have.length', 1)
})
})