mirror of
https://github.com/codex-team/editor.js
synced 2024-05-19 06:47:16 +02:00
cd29c52e51
* slash to open toolbox, tab for navigation * tab, focus improvements - remove "focused" block state - tab navigation respects inputs - allow to focus contentless blocks * fix tests * tests for Slash * tab tests * test for tabbing out of editor * tests fixed * review fixes
38 lines
723 B
TypeScript
38 lines
723 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';
|
|
import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector';
|
|
import 'cypress-plugin-tab';
|
|
|
|
installLogsCollector();
|
|
|
|
/**
|
|
* File with the helpful commands
|
|
*/
|
|
import './commands';
|
|
|
|
/**
|
|
* File with custom assertions
|
|
*/
|
|
import './e2e';
|
|
|
|
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');
|
|
});
|