From 208868be9ddb658d7a89f14a4590e07b90485d8a Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 19 Jan 2024 09:29:22 +0100 Subject: [PATCH] test --- .../spec/features/popup-menu/PopupMenuSpec.js | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test/spec/features/popup-menu/PopupMenuSpec.js b/test/spec/features/popup-menu/PopupMenuSpec.js index a4dd29141..d66494888 100755 --- a/test/spec/features/popup-menu/PopupMenuSpec.js +++ b/test/spec/features/popup-menu/PopupMenuSpec.js @@ -22,7 +22,7 @@ import { createEvent as globalEvent } from '../../../util/MockEvents'; import popupMenuModule from 'lib/features/popup-menu'; import modelingModule from 'lib/features/modeling'; -import { html } from 'lib/ui'; +// import { html } from 'lib/ui'; describe('features/popup-menu', function() { @@ -1316,35 +1316,35 @@ describe('features/popup-menu', function() { })); - it('should render custom entry if no search results', inject(async function(popupMenu) { + // it('should render custom entry if no search results', inject(async function(popupMenu) { - // given - popupMenu.registerProvider('test-menu', { - ...testMenuProvider, - getNoSearchResultsCallback: () => { - return value => html`

${ value }

`; - } - }); + // // given + // popupMenu.registerProvider('test-menu', { + // ...testMenuProvider, + // getNoSearchResultsCallback: () => { + // return value => html`

${ value }

`; + // } + // }); - popupMenu.open({}, 'test-menu', { x: 100, y: 100 }, { search: true }); + // popupMenu.open({}, 'test-menu', { x: 100, y: 100 }, { search: true }); - // when - await triggerSearch('foobar'); + // // when + // await triggerSearch('foobar'); - // then - var shownEntries = queryPopupAll('.entry'); + // // then + // var shownEntries = queryPopupAll('.entry'); - expect(shownEntries).to.have.length(0); + // expect(shownEntries).to.have.length(0); - var noSearchResultsNode = queryPopup('.djs-popup-no-results'); + // var noSearchResultsNode = queryPopup('.djs-popup-no-results'); - expect(noSearchResultsNode).to.exist; + // expect(noSearchResultsNode).to.exist; - var customNode = domQuery('#custom', noSearchResultsNode); + // var customNode = domQuery('#custom', noSearchResultsNode); - expect(customNode).to.exist; - expect(customNode.textContent).to.eql('foobar'); - })); + // expect(customNode).to.exist; + // expect(customNode.textContent).to.eql('foobar'); + // })); });