Skip to content

Commit 2cb69ec

Browse files
authored
test: update grid-pro test to query item from the list-box (#9609)
1 parent 08f63d6 commit 2cb69ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/grid-pro/test/edit-column-type.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('edit column editor type', () => {
177177
await nextFrame();
178178
editor.focusElement.click();
179179
focusout(editor);
180-
focusin(editor._overlayElement.querySelector('vaadin-select-item'));
180+
focusin(editor._menuElement.querySelector('vaadin-select-item'));
181181
grid._flushStopEdit();
182182
await nextRender();
183183
expect(editor.opened).to.equal(true);
@@ -214,7 +214,7 @@ describe('edit column editor type', () => {
214214

215215
it('should update value and exit edit mode when item is selected', async () => {
216216
grid.singleCellEdit = true;
217-
const item = editor._overlayElement.querySelector('vaadin-select-item');
217+
const item = editor._menuElement.querySelector('vaadin-select-item');
218218
const value = item.textContent;
219219
const spy = sinon.spy(cell, 'focus');
220220
item.click();
@@ -226,7 +226,7 @@ describe('edit column editor type', () => {
226226

227227
it('should work with `enterNextRow`', async () => {
228228
grid.enterNextRow = true;
229-
const item = editor._overlayElement.querySelector('vaadin-select-item');
229+
const item = editor._menuElement.querySelector('vaadin-select-item');
230230
enter(item);
231231
await nextFrame();
232232
expect(column._getEditorComponent(cell)).to.not.be.ok;

0 commit comments

Comments
 (0)