diff --git a/packages/ui-breadcrumb/src/Breadcrumb/__tests__/Breadcrumb.test.tsx b/packages/ui-breadcrumb/src/Breadcrumb/__tests__/Breadcrumb.test.tsx
index f9a7aea5fa..418cce0548 100644
--- a/packages/ui-breadcrumb/src/Breadcrumb/__tests__/Breadcrumb.test.tsx
+++ b/packages/ui-breadcrumb/src/Breadcrumb/__tests__/Breadcrumb.test.tsx
@@ -22,42 +22,41 @@
* SOFTWARE.
*/
-// import React from 'react'
+import React from 'react'
-// import { expect, mount, generateA11yTests } from '@instructure/ui-test-utils'
-import { generateA11yTests } from '@instructure/ui-test-utils'
+import { expect, mount, generateA11yTests } from '@instructure/ui-test-utils'
import { Breadcrumb } from '../index'
-// import { BreadcrumbLocator } from '../BreadcrumbLocator'
+import { BreadcrumbLocator } from '../BreadcrumbLocator'
import BreadcrumbExamples from '../__examples__/Breadcrumb.examples'
describe('', async () => {
- // it('should render the label as an aria-label attribute', async () => {
- // await mount(
- //
- // Account
- //
- // )
- // const breadcrumb = await BreadcrumbLocator.find()
- // const label = await breadcrumb.find(':label(Settings)')
- //
- // expect(label.getAttribute('aria-label')).to.equal('Settings')
- // })
+ it('should render the label as an aria-label attribute', async () => {
+ await mount(
+
+ Account
+
+ )
+ const breadcrumb = await BreadcrumbLocator.find()
+ const label = await breadcrumb.find(':label(Settings)')
+
+ expect(label.getAttribute('aria-label')).to.equal('Settings')
+ })
describe('with generated examples', async () => {
generateA11yTests(Breadcrumb, BreadcrumbExamples)
})
- // it('should render an icon as a separator', async () => {
- // await mount(
- //
- // Account
- // Settings
- //
- // )
- // const breadcrumb = await BreadcrumbLocator.find()
- // const icon = await breadcrumb.find('svg')
- //
- // expect(icon.getAttribute('aria-hidden')).to.equal('true')
- // })
+ it('should render an icon as a separator', async () => {
+ await mount(
+
+ Account
+ Settings
+
+ )
+ const breadcrumb = await BreadcrumbLocator.find()
+ const icon = await breadcrumb.find('svg')
+
+ expect(icon.getAttribute('aria-hidden')).to.equal('true')
+ })
})
diff --git a/packages/ui-test-utils/src/utils/generateComponentExamples.ts b/packages/ui-test-utils/src/utils/generateComponentExamples.ts
index b891f69a4a..05afaef5e6 100644
--- a/packages/ui-test-utils/src/utils/generateComponentExamples.ts
+++ b/packages/ui-test-utils/src/utils/generateComponentExamples.ts
@@ -22,7 +22,7 @@
* SOFTWARE.
*/
-// import { nanoid } from 'nanoid'
+import { nanoid } from 'nanoid'
import { generatePropCombinations } from './generatePropCombinations'
import React, { ComponentType, ReactNode } from 'react'
@@ -241,8 +241,7 @@ export function generateComponentExamples>(
}
const propsString = fastSerialize(componentProps)
if (!PROPS_CACHE.includes(propsString)) {
- // const key = nanoid()
- const key = '' + Math.round(Math.random() * 10000)
+ const key = nanoid()
const exampleProps = getExampleProps(props)
exampleCount++
if (exampleCount < maxExamples) {