From 6cc635a8a791a4d31d0c2adea7e64428ce804502 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 22 Jul 2024 12:52:12 +0200 Subject: [PATCH] test: add missing `/components` in urls --- test/components/Breadcrumb.spec.ts | 6 +-- test/components/DropdownMenu.spec.ts | 2 +- test/components/NavigationMenu.spec.ts | 12 +++--- .../__snapshots__/Breadcrumb.spec.ts.snap | 38 +++++++++---------- .../__snapshots__/DropdownMenu.spec.ts.snap | 32 ++++++++-------- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/test/components/Breadcrumb.spec.ts b/test/components/Breadcrumb.spec.ts index 31d55a68..44065d90 100644 --- a/test/components/Breadcrumb.spec.ts +++ b/test/components/Breadcrumb.spec.ts @@ -10,12 +10,12 @@ describe('Breadcrumb', () => { }, to: '/' }, { - label: 'Navigation', - icon: 'i-heroicons-square-3-stack-3d', + label: 'Components', + icon: 'i-heroicons-cube-transparent', disabled: true }, { label: 'Breadcrumb', - to: '/breadcrumb', + to: '/components/breadcrumb', icon: 'i-heroicons-link', slot: 'custom' }] diff --git a/test/components/DropdownMenu.spec.ts b/test/components/DropdownMenu.spec.ts index 5fea770c..fda4fc56 100644 --- a/test/components/DropdownMenu.spec.ts +++ b/test/components/DropdownMenu.spec.ts @@ -99,7 +99,7 @@ describe('DropdownMenu', () => { }, { label: 'Support', icon: 'i-heroicons-lifebuoy', - to: '/dropdown-menu' + to: '/components/dropdown-menu' }, { type: 'separator' }, { diff --git a/test/components/NavigationMenu.spec.ts b/test/components/NavigationMenu.spec.ts index 6741553a..abb11498 100644 --- a/test/components/NavigationMenu.spec.ts +++ b/test/components/NavigationMenu.spec.ts @@ -35,32 +35,32 @@ describe('NavigationMenu', () => { label: 'Link', icon: 'i-heroicons-document', description: 'Use NuxtLink with superpowers.', - to: '/link' + to: '/components/link' }, { label: 'Modal', icon: 'i-heroicons-document', description: 'Display a modal within your application.', - to: '/modal' + to: '/components/modal' }, { label: 'NavigationMenu', icon: 'i-heroicons-document', description: 'Display a list of links.', - to: '/navigation-menu' + to: '/components/navigation-menu' }, { label: 'Pagination', icon: 'i-heroicons-document', description: 'Display a list of pages.', - to: '/pagination' + to: '/components/pagination' }, { label: 'Popover', icon: 'i-heroicons-document', description: 'Display a non-modal dialog that floats around a trigger element.', - to: '/popover' + to: '/components/popover' }, { label: 'Progress', icon: 'i-heroicons-document', description: 'Show a horizontal bar to indicate task progression.', - to: '/progress' + to: '/components/progress' }] }], [{ label: 'GitHub', diff --git a/test/components/__snapshots__/Breadcrumb.spec.ts.snap b/test/components/__snapshots__/Breadcrumb.spec.ts.snap index 6265f9fc..04d5c9e7 100644 --- a/test/components/__snapshots__/Breadcrumb.spec.ts.snap +++ b/test/components/__snapshots__/Breadcrumb.spec.ts.snap @@ -5,9 +5,9 @@ exports[`Breadcrumb > renders with class correctly 1`] = `
  1. Home
  2. -
  3. Navigation
  4. +
  5. Components
  6. -
  7. Breadcrumb
  8. +
  9. Breadcrumb
" @@ -18,9 +18,9 @@ exports[`Breadcrumb > renders with custom slot correctly 1`] = `
  1. Home
  2. -
  3. Navigation
  4. +
  5. Components
  6. -
  7. Custom slot
  8. +
  9. Custom slot
" @@ -33,7 +33,7 @@ exports[`Breadcrumb > renders with item slot correctly 1`] = `
  • Item slot
  • -
  • Breadcrumb
  • +
  • Breadcrumb
  • " @@ -44,9 +44,9 @@ exports[`Breadcrumb > renders with item-label slot correctly 1`] = `
    1. Item label slot
    2. -
    3. Item label slot
    4. +
    5. Item label slot
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -57,9 +57,9 @@ exports[`Breadcrumb > renders with item-leading slot correctly 1`] = `
    1. Item leading slotHome
    2. -
    3. Item leading slotNavigation
    4. +
    5. Item leading slotComponents
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -70,9 +70,9 @@ exports[`Breadcrumb > renders with item-trailing slot correctly 1`] = `
    1. HomeItem trailing slot
    2. -
    3. NavigationItem trailing slot
    4. +
    5. ComponentsItem trailing slot
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -83,9 +83,9 @@ exports[`Breadcrumb > renders with items correctly 1`] = `
    1. Home
    2. -
    3. Navigation
    4. +
    5. Components
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -96,9 +96,9 @@ exports[`Breadcrumb > renders with separator slot correctly 1`] = `
    1. Home
    2. -
    3. Navigation
    4. +
    5. Components
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -109,9 +109,9 @@ exports[`Breadcrumb > renders with separatorIcon correctly 1`] = `
    1. Home
    2. -
    3. Navigation
    4. +
    5. Components
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " @@ -122,9 +122,9 @@ exports[`Breadcrumb > renders with ui correctly 1`] = `
    1. Home
    2. -
    3. Navigation
    4. +
    5. Components
    6. -
    7. Breadcrumb
    8. +
    9. Breadcrumb
    " diff --git a/test/components/__snapshots__/DropdownMenu.spec.ts.snap b/test/components/__snapshots__/DropdownMenu.spec.ts.snap index bd78582f..98e56f9c 100644 --- a/test/components/__snapshots__/DropdownMenu.spec.ts.snap +++ b/test/components/__snapshots__/DropdownMenu.spec.ts.snap @@ -37,7 +37,7 @@ exports[`DropdownMenu > renders with arrow correctly 1`] = `
    GitHub - + Support @@ -97,7 +97,7 @@ exports[`DropdownMenu > renders with class correctly 1`] = `
    GitHub - + Support @@ -154,7 +154,7 @@ exports[`DropdownMenu > renders with custom slot correctly 1`] = `
    GitHub - + Support @@ -214,7 +214,7 @@ exports[`DropdownMenu > renders with default slot correctly 1`] = `
    GitHub - + Support @@ -274,7 +274,7 @@ exports[`DropdownMenu > renders with disabled correctly 1`] = `
    GitHub - + Support @@ -318,7 +318,7 @@ exports[`DropdownMenu > renders with item slot correctly 1`] = `
    -
    Item slotItem slot +
    Item slotItem slot
    @@ -367,7 +367,7 @@ exports[`DropdownMenu > renders with item-label slot correctly 1`] = `
    Item label slot - + Item label slot @@ -417,7 +417,7 @@ exports[`DropdownMenu > renders with item-leading slot correctly 1`] = `
    Item leading slotGitHub - Item leading slotSupport + Item leading slotSupport
    GitHubItem trailing slot - + SupportItem trailing slot