Skip to content

Commit 21fae47

Browse files
committed
Changed in accessibility tests too
1 parent fb1eb80 commit 21fae47

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

packages/lib/src/header/Header.accessibility.test.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ const iconSVG = (
2525

2626
const iconUrl = "https://iconape.com/wp-content/files/yd/367773/svg/logo-linkedin-logo-icon-png-svg.png";
2727

28-
const branding = {
29-
logo: {
30-
src: iconSVG,
31-
alt: "DXC Logo",
32-
href: iconUrl,
33-
},
34-
appTitle:
35-
"Application Title with a very long name that exceeds the normal length to test how the header manages overflow situations",
28+
const logo = {
29+
src: iconSVG,
30+
alt: "DXC Logo",
31+
href: iconUrl,
3632
};
33+
const appTitle =
34+
"Application Title with a very long name that exceeds the normal length to test how the header manages overflow situations";
3735

3836
const items = [
3937
{
@@ -73,7 +71,8 @@ describe("Header component accessibility tests", () => {
7371
it("Should not have basic accessibility issues", async () => {
7472
const { container } = render(
7573
<DxcHeader
76-
branding={branding}
74+
logo={logo}
75+
appTitle={appTitle}
7776
navItems={items}
7877
sideContent={
7978
<DxcButton title="Settings" icon="settings" mode="tertiary" size={{ height: "medium" }} onClick={() => {}} />

0 commit comments

Comments
 (0)