import {PlutoniumAccountPanel} from '../plutonium-account-panel.js'; import {fixture, html} from '@open-wc/testing'; const assert = chai.assert; suite('plutonium-account-panel', () => { test('is defined', () => { const el = document.createElement('plutonium-account-panel'); assert.instanceOf(el, PlutoniumAccountPanel); }); test('renders with default values', async () => { const el = await fixture(html``); assert.shadowDom.equal( el, `

Hello, World!

` ); }); test('renders with a set name', async () => { const el = await fixture(html``); assert.shadowDom.equal( el, `

Hello, Test!

` ); }); test('handles a click', async () => { const el = (await fixture(html``)) as PlutoniumAccountPanel; const button = el.shadowRoot!.querySelector('button')!; button.click(); await el.updateComplete; assert.shadowDom.equal( el, `

Hello, World!

` ); }); });