mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
* block onchange stash * improve block filtration * update tool root * chore(block): remove willSelect und willUnselect * onchange events batching * get rid of CustomEvent extension, create custom event map instead * improve types of EventsDispatcher * fix tests * custom sinon + chai matchers * improve tests, add mutex for fake cursor * add test for fake-cursor mutex * test for batch filtering * fix caret setting by enter press at the end of the block * test for detectToolRootChange * remove resolved todos * changelog added * fix tests * Update CHANGELOG.md * rename FakeCursorAboutToBeSet -> FakeCursorAboutToBeToggled * update didMutated statements * move inputs cache clearing to a separate method * rm Record inheritance from Event maps * add type alisases * rename isElementContainsFakeCursor -> isFakeCursorInsideContainer * improve code style
28 lines
528 B
TypeScript
28 lines
528 B
TypeScript
/**
|
|
* This file is processed and
|
|
* loaded automatically before the test files.
|
|
*
|
|
* This is a great place to put global configuration and
|
|
* behavior that modifies Cypress.
|
|
*/
|
|
|
|
import '@cypress/code-coverage/support';
|
|
|
|
/**
|
|
* File with the helpful commands
|
|
*/
|
|
import './commands';
|
|
|
|
import chaiSubset from 'chai-subset';
|
|
|
|
/**
|
|
* "containSubset" object properties matcher
|
|
*/
|
|
chai.use(chaiSubset);
|
|
|
|
/**
|
|
* Before-each hook for the cypress tests
|
|
*/
|
|
beforeEach((): void => {
|
|
cy.visit('test/cypress/fixtures/test.html');
|
|
});
|