import { html , fixture , expect } from '@open-wc/testing' ; import '../../../../src/editors/ied/ied-container.js' ; import { IedContainer } from '../../../../src/editors/ied/ied-container.js' ; describe ( 'ied-container' , ( ) => { let element ; let validSCL ; beforeEach ( async ( ) => { validSCL = await fetch ( '/test/testfiles/valid2007B4.scd' ) . then ( response => response . text ( ) ) . then ( str => new DOMParser ( ) . parseFromString ( str , 'application/xml' ) ) ; element = await fixture ( html `<ied-container
      .element=${ validSCL . querySelector ( 'IED[name="IED1"]' ) }
    ></ied-container>` ) ; } ) ; it ( 'looks like the latest snapshot' , async ( ) => { await expect ( element ) . shadowDom . to . equalSnapshot ( ) ; } ) ; } ) ;