From 107a24e2c0db3d8a5ae28526a7db3494314b1a02 Mon Sep 17 00:00:00 2001 From: Jonathan Meyer <26874831+atmgrifter00@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:29:39 -0500 Subject: [PATCH] Fix tags in tests. --- .../src/anchor-tabs/tests/anchor-tabs.spec.ts | 16 +++++----- .../src/tabs/tests/tabs.spec.ts | 29 ++++++++++--------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/packages/nimble-components/src/anchor-tabs/tests/anchor-tabs.spec.ts b/packages/nimble-components/src/anchor-tabs/tests/anchor-tabs.spec.ts index a22f016794..28b32d22a3 100644 --- a/packages/nimble-components/src/anchor-tabs/tests/anchor-tabs.spec.ts +++ b/packages/nimble-components/src/anchor-tabs/tests/anchor-tabs.spec.ts @@ -376,14 +376,14 @@ describe('AnchorTabs', () => { describe('scroll buttons', () => { async function setup(): Promise> { return await fixture( - html` - Tab 1 - Tab 2 - Tab 3 - Tab 4 - Tab 5 - Tab 6 - ` + html`<${anchorTabsTag} activeid="tab-two"> + <${anchorTabTag}>Tab 1 + <${anchorTabTag} id="tab-two">Tab 2 + <${anchorTabTag} id="tab-three">Tab 3 + <${anchorTabTag} id="tab-four">Tab 4 + <${anchorTabTag} id="tab-five">Tab 5 + <${anchorTabTag} id="tab-six">Tab 6 + ` ); } diff --git a/packages/nimble-components/src/tabs/tests/tabs.spec.ts b/packages/nimble-components/src/tabs/tests/tabs.spec.ts index 1b5c3bc2da..4dc6edc2c6 100644 --- a/packages/nimble-components/src/tabs/tests/tabs.spec.ts +++ b/packages/nimble-components/src/tabs/tests/tabs.spec.ts @@ -3,23 +3,24 @@ import { Tabs, tabsTag } from '..'; import { fixture, Fixture } from '../../utilities/tests/fixture'; import { waitForUpdatesAsync } from '../../testing/async-helpers'; import { TabsPageObject } from '../testing/tabs.pageobject'; +import { tabTag } from '../../tab'; async function setup(): Promise> { const viewTemplate = html` - - Tab 1 - Tab 2 - Tab 3 - Tab 4 - Tab 5 - Tab 6 - Panel 1 - Panel 2 - Panel 3 - Panel 4 - Panel 5 - Panel 6 - + <${tabsTag}> + <${tabTag} id="1">Tab 1 + <${tabTag} id="2">Tab 2 + <${tabTag} id="3">Tab 3 + <${tabTag} id="4">Tab 4 + <${tabTag} id="5">Tab 5 + <${tabTag} id="6">Tab 6 + <${tabTag}-panel>Panel 1 + <${tabTag}-panel>Panel 2 + <${tabTag}-panel>Panel 3 + <${tabTag}-panel>Panel 4 + <${tabTag}-panel>Panel 5 + <${tabTag}-panel>Panel 6 + `; return await fixture(viewTemplate);