From beddeb07e0e2e3d266af8c7098be5162ac82be5b Mon Sep 17 00:00:00 2001 From: Feb Dao Date: Mon, 16 Dec 2024 00:04:28 +1100 Subject: [PATCH] [#357] Updated menu test. --- components/00-base/menu/__snapshots__/menu.test.js.snap | 1 - components/00-base/menu/menu.test.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/00-base/menu/__snapshots__/menu.test.js.snap b/components/00-base/menu/__snapshots__/menu.test.js.snap index 67f5f63b..2138b03a 100644 --- a/components/00-base/menu/__snapshots__/menu.test.js.snap +++ b/components/00-base/menu/__snapshots__/menu.test.js.snap @@ -90,7 +90,6 @@ exports[`Menu Component renders collapsible menu 1`] = ` { expect(c.querySelector('.ct-menu__item--level-0 .ct-menu__item__link').textContent.trim()).toEqual('Home'); expect(c.querySelector('.ct-menu__item--level-0 .ct-menu__item__link').getAttribute('href')).toEqual('/'); expect(c.querySelectorAll('.ct-menu__sub-menu')).toHaveLength(1); - expect(c.querySelectorAll('[aria-expanded="true"]')).toHaveLength(3); + expect(c.querySelectorAll('[aria-expanded="true"]')).toHaveLength(2); expect(c.querySelectorAll('[aria-expanded="false"]')).toHaveLength(0); assertUniqueCssClasses(c);