Created
February 21, 2020 14:41
-
-
Save peterjmag/cfd150fb92a04635c5d1a58921edd197 to your computer and use it in GitHub Desktop.
@reach/tabs local test failure (https://github.com/reach/reach-ui/pull/486)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yarn test | |
yarn run v1.19.2 | |
$ cross-env NODE_ENV=test CI=true tsdx test packages | |
PASS packages/component-component/__tests__/component-component.test.tsx | |
PASS packages/tooltip/__tests__/tooltip.test.tsx | |
PASS packages/combobox/__tests__/combobox.test.tsx | |
PASS packages/slider/__tests__/slider.test.tsx | |
FAIL packages/tabs/__tests__/tabs.test.tsx | |
● <Tabs /> › focuses the correct tab with keyboard navigation (vertical orientation) | |
expect(received).toBe(expected) // Object.is equality | |
- Expected | |
+ Received | |
- <button | |
- aria-controls="tabs--17--panel--1" | |
- aria-selected="false" | |
- class="tab-2" | |
- data-reach-tab="" | |
- id="tabs--17--tab--1" | |
- role="tab" | |
- tabindex="-1" | |
+ <div | |
+ aria-labelledby="tabs--17--tab--0" | |
+ data-reach-tab-panel="" | |
+ id="tabs--17--panel--0" | |
+ role="tabpanel" | |
+ tabindex="0" | |
> | |
- Tab Two | |
+ <h1> | |
+ one! | |
+ </h1> | |
+ <button> | |
+ yo | |
</button> | |
+ </div> | |
76 | | |
77 | fireEvent.keyDown(tabList, { key: "ArrowDown", code: 40 }); | |
> 78 | expect(document.activeElement).toBe(container.querySelector(".tab-2")); | |
| ^ | |
79 | expect(getTabPanelByButtonClass("tab-2")).toBeVisible(); | |
80 | expect(getTabPanelByButtonClass("tab-1")).not.toBeVisible(); | |
81 | expect(asFragment()).toMatchSnapshot(); | |
at Object.<anonymous> (packages/tabs/__tests__/tabs.test.tsx:78:36) | |
PASS packages/utils/__tests__/utils.test.tsx | |
PASS packages/auto-id/__tests__/auto-id.test.tsx | |
PASS packages/alert-dialog/__tests__/alert-dialog.test.tsx | |
PASS packages/dialog/__tests__/dialog.test.tsx | |
Test Suites: 1 failed, 8 passed, 9 total | |
Tests: 1 failed, 40 passed, 41 total | |
Snapshots: 33 passed, 33 total | |
Time: 6.067s | |
Ran all test suites matching /packages/i. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment