@react-native-windows/automation-commands
TypeScript icon, indicating that this package has built-in type declarations

0.0.62 • Public • Published

@react-native-windows/automation-commands

@react-native-windows/automation-commands provides built-in commands that may be used with @react-native-windows/automation-channel to make it easier to test your application.

This package is a work in progress

Adding to your application

TBD

Commands

dumpVisualTree

The dumpVisualTree command creates a JSON object corresponding to the XAML tree under a given testID. This can be used in conjunction with snapshot testing to validate that your native UI looks how you could expect.

import {dumpVisualTree} from '@react-native-windows/automation-commands';

test('Widget', async () => {
  const dump = await dumpVisualTree('widget-test-id');
  expect(dump).toMatchSnapshot();
});

Options

TBD

Readme

Keywords

none

Package Sidebar

Install

npm i @react-native-windows/automation-commands@0.0.62

Version

0.0.62

License

MIT

Unpacked Size

9.84 kB

Total Files

8

Last publish

Collaborators

  • rnbot
  • dannyvv
  • microsoft1es
  • acoates