react-native-ui-lib 7.41.1-snapshot.6951 → 7.41.1-snapshot.6955

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.41.1-snapshot.6951",
3
+ "version": "7.41.1-snapshot.6955",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -7,5 +7,37 @@ export declare const PickerDriver: (props: ComponentProps, useDialog: boolean) =
7
7
  done: () => void;
8
8
  isOpen: () => boolean;
9
9
  dismissDialog: () => void;
10
+ itemDriver: (testID: string) => {
11
+ press: () => void;
12
+ hasOnPress: () => boolean;
13
+ onPressIn: () => void;
14
+ hasOnPressIn: () => boolean;
15
+ onPressOut: () => void;
16
+ hasOnPressOut: () => boolean;
17
+ onLongPress: () => void;
18
+ hasOnLongPress: () => boolean;
19
+ getElement: () => import("react-test-renderer").ReactTestInstance;
20
+ queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
21
+ exists: () => boolean;
22
+ getStyle: () => any;
23
+ getLabel: () => {
24
+ getText: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
25
+ getStyle: () => import("react-native/types").TextStyle;
26
+ press: () => void;
27
+ hasOnPress: () => boolean;
28
+ onPressIn: () => void;
29
+ hasOnPressIn: () => boolean;
30
+ onPressOut: () => void;
31
+ hasOnPressOut: () => boolean;
32
+ onLongPress: () => void;
33
+ hasOnLongPress: () => boolean;
34
+ getElement: () => import("react-test-renderer").ReactTestInstance;
35
+ queryElement: () => import("react-test-renderer").ReactTestInstance | undefined;
36
+ exists: () => boolean;
37
+ };
38
+ getLabelStyle: () => import("react-native/types").TextStyle;
39
+ getIconStyle: () => any;
40
+ getIcon: () => import("../../testkit/new/Component.driver").ComponentDriverResult;
41
+ };
10
42
  selectItem: (testID: string) => void;
11
43
  };
@@ -54,12 +54,13 @@ export const PickerDriver = (props, useDialog) => {
54
54
  dialogDriver.pressOnBackground();
55
55
  }
56
56
  };
57
+ const itemDriver = testID => ButtonDriver({
58
+ renderTree: props.renderTree,
59
+ testID
60
+ });
57
61
  const selectItem = testID => {
58
- const itemDriver = ButtonDriver({
59
- renderTree: props.renderTree,
60
- testID
61
- });
62
- itemDriver.press();
62
+ const driver = itemDriver(testID);
63
+ driver.press();
63
64
  };
64
65
  return {
65
66
  exists,
@@ -69,6 +70,7 @@ export const PickerDriver = (props, useDialog) => {
69
70
  done,
70
71
  isOpen,
71
72
  dismissDialog,
73
+ itemDriver,
72
74
  selectItem
73
75
  };
74
76
  };