editor.js/test/cypress/support/index.ts
Peter Savchenko cd29c52e51
feat(ui): native-like tab behaviour, slash for toolbox (#2569)
* 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
2023-12-22 23:15:35 +03:00

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');
});