Skip to content

Commit

Permalink
chore: remove unreliable tests
Browse files Browse the repository at this point in the history
Related to #1073
  • Loading branch information
Skaiir committed Mar 26, 2024
1 parent 38d4f07 commit a843149
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,45 +116,6 @@ describe('features/palette', function() {
});


it('should attach when section rendered late', async function() {

// given
const node = document.createElement('div');
document.body.appendChild(node);

let formEditor;

await act(async () => {
const result = await createEditor(schema);
formEditor = result.formEditor;
});

const palette = formEditor.get('palette');
const eventBus = formEditor.get('eventBus');

// when
await act(() => {
return palette.attachTo(node);
});

// then
expect(domQuery('.fjs-palette', paletteContainer)).to.exist;
expect(domQuery('.fjs-palette', node)).to.not.exist;

// when
await act(() => {
eventBus.fire('palette.section.rendered');
});

// then
expect(domQuery('.fjs-palette', paletteContainer)).to.not.exist;
expect(domQuery('.fjs-palette', node)).to.exist;

// cleanup
document.body.removeChild(node);
});


it('should detach', async function() {

// given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,45 +117,6 @@ describe('features/propertiesPanel', function() {
});


it.skip('should attach when section rendered late', async function() {

// given
const node = document.createElement('div');
document.body.appendChild(node);

let formEditor;

await act(async () => {
const result = await createEditor(schema);
formEditor = result.formEditor;
});

const propertiesPanel = formEditor.get('propertiesPanel');
const eventBus = formEditor.get('eventBus');

// when
await act(() => {
return propertiesPanel.attachTo(node);
});

// then
expect(domQuery('.fjs-properties-panel', propertiesPanelContainer)).to.exist;
expect(domQuery('.fjs-properties-panel', node)).to.not.exist;

// when
await act(() => {
eventBus.fire('propertiesPanel.section.rendered');
});

// then
expect(domQuery('.fjs-properties-panel', propertiesPanelContainer)).to.not.exist;
expect(domQuery('.fjs-properties-panel', node)).to.exist;

// cleanup
document.body.removeChild(node);
});


it('should detach', async function() {

// given
Expand Down

0 comments on commit a843149

Please sign in to comment.