@testspectra/react-native 1.3.6 → 1.3.7
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/dist/index.js +8 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1577,15 +1577,9 @@ function createElementActions(selector, index) {
|
|
|
1577
1577
|
return createElementProxy(indexedBase() + "::parent", null);
|
|
1578
1578
|
}
|
|
1579
1579
|
async function closest(targetSelector) {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
async () => {
|
|
1584
|
-
const exists = await driver().closest(selector, targetSelector, index);
|
|
1585
|
-
if (!exists) return null;
|
|
1586
|
-
return createElementProxy(`${indexedBase()}::closest(${targetSelector})`, null);
|
|
1587
|
-
}
|
|
1588
|
-
);
|
|
1580
|
+
const exists = await driver().closest(selector, targetSelector, index);
|
|
1581
|
+
if (!exists) return null;
|
|
1582
|
+
return createElementProxy(`${indexedBase()}::closest(${targetSelector})`, null);
|
|
1589
1583
|
}
|
|
1590
1584
|
function children(targetSelector) {
|
|
1591
1585
|
return createCollectionProxy(`${indexedBase()}::children(${targetSelector ?? ""})`);
|
|
@@ -2038,9 +2032,11 @@ function buildSpectra() {
|
|
|
2038
2032
|
const el = resolveTargetProxy(target);
|
|
2039
2033
|
await el.longPress(options);
|
|
2040
2034
|
},
|
|
2041
|
-
pressKey:
|
|
2042
|
-
|
|
2043
|
-
|
|
2035
|
+
pressKey: (key) => trackStep(
|
|
2036
|
+
"action",
|
|
2037
|
+
{ type: "action", key: "pressKey", target: void 0, args: [key] },
|
|
2038
|
+
() => driver().pressKey(key)
|
|
2039
|
+
),
|
|
2044
2040
|
grantPermission: async (name) => {
|
|
2045
2041
|
await driver().grantPermission(name);
|
|
2046
2042
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testspectra/react-native",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Native Android & iOS component test runner for React Native with TestSpectra Spectra.* DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"testspectra",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"cross-spawn": "^7.0.6",
|
|
34
34
|
"esbuild": "^0.28.2",
|
|
35
|
-
"@testspectra/matchers": "1.3.
|
|
35
|
+
"@testspectra/matchers": "1.3.7"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18.0.0",
|