diff --git a/__snapshots__/vwc-menu.md b/__snapshots__/vwc-menu.md index cdba61edf4..50239d8e16 100644 --- a/__snapshots__/vwc-menu.md +++ b/__snapshots__/vwc-menu.md @@ -3,7 +3,7 @@ #### `should have internal contents` ```html - + ``` diff --git a/components/datepicker/test/datepicker.test.js b/components/datepicker/test/datepicker.test.js index c6d7dbdc6d..c4df98d5ba 100644 --- a/components/datepicker/test/datepicker.test.js +++ b/components/datepicker/test/datepicker.test.js @@ -21,14 +21,6 @@ describe('datepicker', () => { ); }); - // it('should have internal contents', async () => { - // const [actualElement] = addElement( - // textToDomToParent(`<${COMPONENT_NAME}>`) - // ); - // await actualElement.onReady; - // expect(actualElement.shadowRoot.innerHTML).to.equalSnapshot(); - // }); - it('should have lit-flatpickr instance in DOM', async () => { const [actualElement] = addElement( textToDomToParent(`<${COMPONENT_NAME}>`) @@ -75,7 +67,8 @@ describe('datepicker', () => { await waitNextTask(); const vwcMenu = actualElement.shadowRoot.querySelector('vwc-menu'); - const mwcMenuSurface = vwcMenu.shadowRoot.querySelector('mwc-menu-surface'); + console.log(vwcMenu.shadowRoot); + const mwcMenuSurface = vwcMenu.shadowRoot.querySelector('vwc-surface'); const menuSurface = mwcMenuSurface.shadowRoot.querySelector('.mdc-menu-surface'); assertComputedStyle(menuSurface, { position: 'fixed' });