-
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a08f06
commit 86e06ce
Showing
1 changed file
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,39 @@ | ||
import { expect, fixture, html, waitUntil } from '@open-wc/testing'; | ||
import { expect, fixture, html } from '@open-wc/testing'; | ||
// import sinon from 'sinon'; | ||
|
||
import '../../../dist/shoelace.js'; | ||
import type SlBreadcrumb from './breadcrumb'; | ||
|
||
describe('<sl-breadcrumb>', () => { | ||
it('should render a component', async () => { | ||
const el = await fixture(html` <sl-breadcrumb></sl-breadcrumb> `); | ||
let el; | ||
|
||
expect(el).to.exist; | ||
describe('when provided a standard list of el-breadcrumb-item children and no parameters', async () => { | ||
before(async () => { | ||
el = await fixture<SlBreadcrumb>(html` | ||
<sl-breadcrumb> | ||
<sl-breadcrumb-item>Catalog</sl-breadcrumb-item> | ||
<sl-breadcrumb-item>Clothing</sl-breadcrumb-item> | ||
<sl-breadcrumb-item>Women's</sl-breadcrumb-item> | ||
<sl-breadcrumb-item>Shirts & Tops</sl-breadcrumb-item> | ||
</sl-breadcrumb> | ||
`); | ||
}); | ||
|
||
it('should render a component that passes accessibility test', async () => { | ||
await expect(el).to.be.accessible(); | ||
}); | ||
|
||
it('should render a component that passes accessibility test', async () => { | ||
await expect(el).to.be.accessible(); | ||
}); | ||
|
||
// it('should render the child content provided', async () => { | ||
// expect(el.innerText).to.eq('Badge'); | ||
// }); | ||
|
||
// it('should default to square styling, with the primary color', async () => { | ||
// const part = el.shadowRoot?.querySelector('[part="base"]') as HTMLElement; | ||
// expect(part.classList.value).to.eq('badge badge--primary'); | ||
// }); | ||
}); | ||
}); |