11import { expect } from '@vaadin/chai-plugins' ;
22import { fixtureSync , nextFrame , nextResize } from '@vaadin/testing-helpers' ;
3- import '../vaadin-dashboard-layout.js' ;
4- import '../vaadin-dashboard-section.js' ;
5- import '@vaadin/vaadin-lumo-styles/spacing.js' ;
6- import type { DashboardLayout } from '../vaadin-dashboard-layout.js' ;
7- import type { DashboardSection } from '../vaadin-dashboard-section.js' ;
3+ import '../src/vaadin-dashboard-layout.js' ;
4+ import '../src/vaadin-dashboard-section.js' ;
5+ import type { DashboardLayout } from '../src/vaadin-dashboard-layout.js' ;
6+ import type { DashboardSection } from '../src/vaadin-dashboard-section.js' ;
87import {
98 expectLayout ,
109 getColumnWidths ,
@@ -25,7 +24,7 @@ const [defaultSpacing, defaultMinimumColumnWidth] = (() => {
2524 document . body . appendChild ( div ) ;
2625 div . style . width = '1rem' ;
2726 const minColWidth = div . offsetWidth * 25 ;
28- div . style . width = 'var(--lumo-space-m)' ;
27+ div . style . width = '1rem' ; // var(--lumo-space-m)
2928 const spacing = div . offsetWidth ;
3029 div . remove ( ) ;
3130 return [ spacing , minColWidth ] ;
@@ -360,9 +359,9 @@ describe('dashboard layout', () => {
360359 await nextResize ( dashboard ) ;
361360
362361 const { left : itemLeft } = childElements [ 0 ] . getBoundingClientRect ( ) ;
363- const { left : dashbboardLeft } = dashboard . getBoundingClientRect ( ) ;
364- // Expect the dashbaord to have default padding of 1rem
365- expect ( itemLeft - dashbboardLeft ) . to . eql ( defaultSpacing ) ;
362+ const { left : dashboardLeft } = dashboard . getBoundingClientRect ( ) ;
363+ // Expect the dashboard to have default padding of 1rem
364+ expect ( itemLeft - dashboardLeft ) . to . eql ( defaultSpacing ) ;
366365 } ) ;
367366
368367 it ( 'should have custom gap between items horizontally' , async ( ) => {
@@ -371,9 +370,9 @@ describe('dashboard layout', () => {
371370 await nextResize ( dashboard ) ;
372371
373372 const { left : itemLeft } = childElements [ 0 ] . getBoundingClientRect ( ) ;
374- const { left : dashbboardLeft } = dashboard . getBoundingClientRect ( ) ;
373+ const { left : dashboardLeft } = dashboard . getBoundingClientRect ( ) ;
375374 // Expect the items to have a gap of 10px
376- expect ( itemLeft - dashbboardLeft ) . to . eql ( customSpacing ) ;
375+ expect ( itemLeft - dashboardLeft ) . to . eql ( customSpacing ) ;
377376 } ) ;
378377 } ) ;
379378
0 commit comments