Skip to content

Commit

Permalink
test: Re-enable native integration tests (WordPress#51706)
Browse files Browse the repository at this point in the history
* test: Re-enable Reusable blocks test

This test can now be run due to a fix in
`@testing-library/react-native`.

callstack/react-native-testing-library@d2269f6

* test: Re-enable Tooltip test

This test can now be run due to a fix in
`@testing-library/react-native`.

callstack/react-native-testing-library@d2269f6
  • Loading branch information
dcalhoun committed Jun 20, 2023
1 parent f2efd8a commit 3257238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions packages/block-library/src/block/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ describe( 'Reusable block', () => {
expect( blockDeleted ).toBeDefined();
} );

// Skipped until `pointerEvents: 'none'` no longer erroneously prevents
// triggering `onLayout*` on the element: https://github.com/callstack/react-native-testing-library/issues/897.
it.skip( 'renders block content', async () => {
it( 'renders block content', async () => {
// We have to use different ids because entities are cached in memory.
const id = 4;
const initialHtml = `<!-- wp:block {"ref":${ id }} /-->`;
Expand All @@ -163,7 +161,7 @@ describe( 'Reusable block', () => {
initialHtml,
} );

const [ reusableBlock ] = await screen.findByLabelText(
const reusableBlock = await screen.findByLabelText(
/Pattern Block\. Row 1/
);

Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/tooltip/test/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ it( 'displays the message', () => {
expect( screen.getByText( 'A helpful message' ) ).toBeTruthy();
} );

// Skipped until `pointerEvents: 'box-none'` no longer erroneously prevents
// triggering `onTouch*` on the element: https://github.com/callstack/react-native-testing-library/issues/897
it.skip( 'dismisses when the screen is tapped', () => {
it( 'dismisses when the screen is tapped', () => {
const screen = render(
<TooltipSlot>
<Tooltip visible={ true } text="A helpful message">
Expand Down

0 comments on commit 3257238

Please sign in to comment.