Skip to content

Commit 9aa641c

Browse files
authored
test: remove CRUD test that covers Lumo specific CSS (#9838)
1 parent d69fe51 commit 9aa641c

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

packages/crud/test/crud-editor.test.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -133,44 +133,4 @@ describe('crud editor', () => {
133133
expect(crud.editorOpened).to.be.true;
134134
});
135135
});
136-
137-
['default', 'custom'].forEach((type) => {
138-
describe(`${type} form`, () => {
139-
beforeEach(async () => {
140-
if (type === 'default') {
141-
crud = fixtureSync('<vaadin-crud style="width: 300px;"></vaadin-crud>');
142-
} else {
143-
crud = fixtureSync(`
144-
<vaadin-crud style="width: 300px;">
145-
<vaadin-form-layout slot="form">
146-
<vaadin-text-field path="foo" required></vaadin-text-field>
147-
</vaadin-form-layout>
148-
</vaadin-crud>
149-
`);
150-
}
151-
crud.editOnClick = true;
152-
await nextRender();
153-
flushGrid(crud._grid);
154-
155-
crud.items = [{ foo: 'bar' }, { foo: 'baz' }];
156-
await nextRender();
157-
});
158-
159-
it('should not cover the editor content with focus ring element', async () => {
160-
// Open the editor
161-
crud.editorPosition = 'aside';
162-
crud._newButton.click();
163-
await nextRender();
164-
165-
// Get the elementFromPoint of the editor header
166-
const header = crud.querySelector(':scope > [slot=header]');
167-
const headerRect = header.getBoundingClientRect();
168-
const x = headerRect.left + headerRect.width / 2;
169-
const y = headerRect.top + headerRect.height / 2;
170-
const elementFromPoint = document.elementFromPoint(x, y);
171-
172-
expect(elementFromPoint).to.equal(header);
173-
});
174-
});
175-
});
176136
});

0 commit comments

Comments
 (0)