Skip to content

feat: implement handling for closing transitions #253

feat: implement handling for closing transitions

feat: implement handling for closing transitions #253

Triggered via pull request November 11, 2024 18:24
Status Failure
Total duration 59s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js > Bootstrap5DisclosureMenuToggle protected methods > _expand > should add the transition class to the controlled menu: tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js#L144
AssertionError: expected "addClass" to be called with arguments: [ 'collapsing', <ul …(4)>…(5)</ul> ] Received: 1st addClass call: Array [ - "collapsing", + "show", <ul aria-labelledby="menu-button-ehrvtgwjc" class="dropdown-menu" id="menu-ehrvtgwjc" style="--am-transition-duration: 350ms; --am-open-transition-duration: 350ms; --am-close-transition-duration: 350ms;" > <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > About </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Wild </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Domesticated </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Habitats </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Food </a> </li> </ul>, ] Number of calls: 1 ❯ tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js:144:19
tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js > Bootstrap5DisclosureMenuToggle protected methods > _expand > should remove the transition class from the controlled menu after the transition is complete: tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js#L177
AssertionError: expected "spy" to be called with arguments: [ 'collapsing', <ul …(4)>…(5)</ul> ] Received: 1st spy call: Array [ - "collapsing", + "collapse", <ul aria-labelledby="menu-button-uemjrjtol" class="dropdown-menu" id="menu-uemjrjtol" style="--am-transition-duration: 0ms; --am-open-transition-duration: 0ms; --am-close-transition-duration: 0ms;" > <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > About </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Wild </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Domesticated </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Habitats </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Food </a> </li> </ul>, ] Number of calls: 1 ❯ tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js:177:19
tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js > Bootstrap5DisclosureMenuToggle protected methods > _collapse > should add the transition class to the controlled menu: tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js#L340
AssertionError: expected "addClass" to be called with arguments: [ 'collapsing', <ul …(4)>…(5)</ul> ] Received: 1st addClass call: Array [ - "collapsing", + "collapse", <ul aria-labelledby="menu-button-beursse" class="dropdown-menu" id="menu-beursse" style="--am-transition-duration: 350ms; --am-open-transition-duration: 350ms; --am-close-transition-duration: 350ms;" > <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > About </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Wild </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Domesticated </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Habitats </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Food </a> </li> </ul>, ] Number of calls: 1 ❯ tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js:340:19
tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js > Bootstrap5DisclosureMenuToggle protected methods > _collapse > should remove the transition class from the controlled menu after the transition is complete: tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js#L373
AssertionError: expected "spy" to be called with arguments: [ 'collapsing', <ul …(4)>…(5)</ul> ] Received: 1st spy call: Array [ - "collapsing", + "show", <ul aria-labelledby="menu-button-zomyotmm" class="dropdown-menu" id="menu-zomyotmm" style="--am-transition-duration: 0ms; --am-open-transition-duration: 0ms; --am-close-transition-duration: 0ms;" > <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > About </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Wild </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Domesticated </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Habitats </a> </li> <li class="nav-item" > <a class="nav-link dropdown-item" href="#" > Food </a> </li> </ul>, ] Number of calls: 1 ❯ tests/menus/Bootstrap5DisclosureMenuToggle/protected.test.js:373:19
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > should set the root menu's controller's aria-haspopup attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L35
AssertionError: expected null to be 'true' // Object.is equality - Expected: "true" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:35:63
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > Submenu +0 > should set the submenu toggle's aria-controls attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L113
AssertionError: expected null to be 'menu-rnnjyhds' // Object.is equality - Expected: "menu-rnnjyhds" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:113:63
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > Submenu 1 > should set the submenu toggle's aria-controls attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L113
AssertionError: expected null to be 'menu-yohlisxi' // Object.is equality - Expected: "menu-yohlisxi" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:113:63
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > Submenu 2 > should set the submenu toggle's aria-controls attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L113
AssertionError: expected null to be 'menu-qcazoajvth' // Object.is equality - Expected: "menu-qcazoajvth" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:113:63
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > Submenu 3 > should set the submenu toggle's aria-controls attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L113
AssertionError: expected null to be 'menu-wsbvackii' // Object.is equality - Expected: "menu-wsbvackii" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:113:63
tests/menus/Bootstrap5Menubar/aria.test.js > Bootstrap5Menubar > Submenu 4 > should set the submenu toggle's aria-controls attribute: tests/menus/Bootstrap5Menubar/aria.test.js#L113
AssertionError: expected null to be 'menu-ywapjeac' // Object.is equality - Expected: "menu-ywapjeac" + Received: null ❯ tests/menus/Bootstrap5Menubar/aria.test.js:113:63