diff --git a/test/cypress/tests/api/tools.spec.ts b/test/cypress/tests/api/tools.spec.ts index b39124d9..e29ad7ef 100644 --- a/test/cypress/tests/api/tools.spec.ts +++ b/test/cypress/tests/api/tools.spec.ts @@ -192,83 +192,6 @@ describe('Editor Tools Api', () => { }); }); }); - - it('should not display tool in toolbox if the tool has single toolbox entry configured and it has title missing', () => { - /** - * Tool with one of the toolbox entries with icon missing - */ - class TestTool { - /** - * Returns toolbox config as list of entries one of which has missing icon - */ - public static get toolbox(): ToolboxConfig { - return { - icon: ICON, - }; - } - } - - cy.createEditor({ - tools: { - testTool: TestTool, - }, - }).as('editorInstance'); - - cy.get('[data-cy=editorjs]') - .get('div.ce-block') - .click(); - - cy.get('[data-cy=editorjs]') - .get('div.ce-toolbar__plus') - .click(); - - cy.get('[data-cy=editorjs]') - .get('div.ce-popover__item[data-item-name=testTool]') - .should('not.exist'); - }); - - it('should skip toolbox entries that have no title', () => { - const skippedEntryTitle = 'Entry 2'; - - /** - * Tool with one of the toolbox entries with icon missing - */ - class TestTool { - /** - * Returns toolbox config as list of entries one of which has missing icon - */ - public static get toolbox(): ToolboxConfig { - return [ - { - title: 'Entry 1', - icon: ICON, - }, - { - icon: ICON, - }, - ]; - } - } - - cy.createEditor({ - tools: { - testTool: TestTool, - }, - }).as('editorInstance'); - - cy.get('[data-cy=editorjs]') - .get('div.ce-block') - .click(); - - cy.get('[data-cy=editorjs]') - .get('div.ce-toolbar__plus') - .click(); - - cy.get('[data-cy=editorjs]') - .get('div.ce-popover__item[data-item-name=testTool]') - .should('have.length', 1) - .should('not.contain', skippedEntryTitle); - }); }); context('Tunes — renderSettings()', () => {