Skip to content

Commit

Permalink
Test script: removing test because of confirmation window
Browse files Browse the repository at this point in the history
  • Loading branch information
gusthoff committed Sep 8, 2024
1 parent 694135e commit 22898fb
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions frontend/tests/ts/widget.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,28 +404,6 @@ describe('Widget', () => {
editor = ace.edit(editorDiv);
});

it('should have a checkbox that switches tab setting', () => {
const nonTabbedEditorDiv: HTMLElement = getElemById(root.id + '.editors.non-tabbed-editor');
const box = getElemById(root.id + '.settings-bar.tab-setting') as
HTMLInputElement;

const origIsTabbedView : boolean = !editorDiv.hidden;
expect(nonTabbedEditorDiv.hidden).to.equal(origIsTabbedView);

box.checked = !box.checked;
triggerEvent(box, 'change');
expect(editorDiv.hidden).to.equal(origIsTabbedView);
expect(nonTabbedEditorDiv.hidden).to.not.equal(origIsTabbedView);

// Test hiding / showing buttons for tabbed view
const tabs = getElemById(root.id + '.tab');
const headers = getElemsByTag(tabs, 'button');

for (const h of headers) {
expect(h.hidden).to.equal(origIsTabbedView);
}
});

it('should have a button that resets the editor', () => {
const btn = getElemById(root.id + '.settings-bar.reset-btn') as
HTMLButtonElement;
Expand Down

0 comments on commit 22898fb

Please sign in to comment.