@e2e-dev/mobile 0.8.0-canary-20260928184528
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/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +159 -0
- package/dist/.build.json +1 -0
- package/dist/actions.d.ts +41 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +70 -0
- package/dist/actions.js.map +1 -0
- package/dist/bindings.d.ts +87 -0
- package/dist/bindings.d.ts.map +1 -0
- package/dist/bindings.js +112 -0
- package/dist/bindings.js.map +1 -0
- package/dist/device.d.ts +117 -0
- package/dist/device.d.ts.map +1 -0
- package/dist/device.js +116 -0
- package/dist/device.js.map +1 -0
- package/dist/engine.d.ts +17 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +98 -0
- package/dist/engine.js.map +1 -0
- package/dist/errors.d.ts +61 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +223 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/links.d.ts +41 -0
- package/dist/links.d.ts.map +1 -0
- package/dist/links.js +79 -0
- package/dist/links.js.map +1 -0
- package/dist/locate.d.ts +11 -0
- package/dist/locate.d.ts.map +1 -0
- package/dist/locate.js +119 -0
- package/dist/locate.js.map +1 -0
- package/dist/nodes.d.ts +107 -0
- package/dist/nodes.d.ts.map +1 -0
- package/dist/nodes.js +530 -0
- package/dist/nodes.js.map +1 -0
- package/dist/options.d.ts +134 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +7 -0
- package/dist/options.js.map +1 -0
- package/dist/png.d.ts +4 -0
- package/dist/png.d.ts.map +1 -0
- package/dist/png.js +25 -0
- package/dist/png.js.map +1 -0
- package/dist/pool.d.ts +99 -0
- package/dist/pool.d.ts.map +1 -0
- package/dist/pool.js +235 -0
- package/dist/pool.js.map +1 -0
- package/dist/provider.d.ts +119 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +112 -0
- package/dist/provider.js.map +1 -0
- package/dist/selector.d.ts +17 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/selector.js +84 -0
- package/dist/selector.js.map +1 -0
- package/dist/support.d.ts +63 -0
- package/dist/support.d.ts.map +1 -0
- package/dist/support.js +87 -0
- package/dist/support.js.map +1 -0
- package/dist/surface.d.ts +405 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +1159 -0
- package/dist/surface.js.map +1 -0
- package/dist/tools.d.ts +24 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +90 -0
- package/dist/tools.js.map +1 -0
- package/package.json +83 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# @e2e-dev/mobile
|
|
2
|
+
|
|
3
|
+
The mobile engine for [`e2e`](https://www.npmjs.com/package/e2e), built on
|
|
4
|
+
[agent-device](https://github.com/callstack/agent-device): iOS simulators and
|
|
5
|
+
Android emulators through the same `e2e/engine` contract the browser engine
|
|
6
|
+
implements. A test written against `screen`, `expect`, `app`, and `agent` runs
|
|
7
|
+
on a device target unchanged; nothing in `e2e` core knows this package exists.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
Run `npx e2e init` and choose **Mobile (iOS/Android)** for a Settings
|
|
12
|
+
example with optional AI testing. Init defaults to iOS on macOS and Android
|
|
13
|
+
elsewhere; change the platform in `e2e.config.ts` when needed.
|
|
14
|
+
Or add the packages to an existing project:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install --save-dev e2e @e2e-dev/mobile
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`agent-device` needs Xcode with an iOS simulator runtime, or the Android SDK
|
|
21
|
+
with an emulator. Run `npx agent-device doctor` once before handing the target
|
|
22
|
+
to the runner.
|
|
23
|
+
|
|
24
|
+
```ts title="e2e.config.ts"
|
|
25
|
+
import type { E2EConfig } from 'e2e';
|
|
26
|
+
import { createAgent } from 'e2e/agent';
|
|
27
|
+
import { mobile } from '@e2e-dev/mobile';
|
|
28
|
+
import { mobileTools } from '@e2e-dev/mobile/tools';
|
|
29
|
+
import { gateway } from 'ai';
|
|
30
|
+
|
|
31
|
+
const iphone = mobile({ platform: 'ios', app: 'Settings' });
|
|
32
|
+
const pixel = mobile({ platform: 'android', app: 'com.android.settings' });
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
targets: [
|
|
36
|
+
{ name: 'iphone', engine: iphone },
|
|
37
|
+
{ name: 'pixel', engine: pixel },
|
|
38
|
+
],
|
|
39
|
+
workers: 1,
|
|
40
|
+
agents: {
|
|
41
|
+
default: createAgent({
|
|
42
|
+
model: gateway('openai/gpt-5.6-luna'),
|
|
43
|
+
tools: mobileTools(iphone, pixel),
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
} satisfies E2EConfig;
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
A test written against `agent`, `app`, `screen`, and `device` runs on both
|
|
50
|
+
targets unchanged. Only a check that names a platform label (`General` on iOS,
|
|
51
|
+
`Network & internet` on Android) needs `platforms: ['ios']` or
|
|
52
|
+
`platforms: ['android']` on the test.
|
|
53
|
+
|
|
54
|
+
Options:
|
|
55
|
+
|
|
56
|
+
| Option | Meaning |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| `platform` | `'ios'` or `'android'`. |
|
|
59
|
+
| `app` | Bundle id, package, or display name `app.open()` launches fresh; an attempt launches nothing on its own. Also unlocks `app.restart()` and `app.clearState()`. |
|
|
60
|
+
| `appPath` | An iOS `.app` bundle or Android `.apk` installed once per worker before the first attempt, resolved against the project root. Without `app`, the installed bundle id or package is the app `app.open()` launches. |
|
|
61
|
+
| `device` | Simulator or emulator name or UDID. A list is a pool: one worker per entry, worker slot `n` driving the `n`th. Omitted, every booted device of the platform is the pool, as many as the run has slots. |
|
|
62
|
+
| `session` | agent-device session name, before the worker slot: slot `n` drives its device under `<session>-<n>`, `e2e-<target name>-<n>` by default. One run per session at a time. |
|
|
63
|
+
| `snapshot` | `'full'` (default, includes static text) or `'interactive'` (actionable nodes only). |
|
|
64
|
+
| `settle` | For agent actions: milliseconds the UI must hold still after an action before the agent observes again, default `150`; `false` skips the wait. A test's own steps never settle; `expect` verifies their outcome. |
|
|
65
|
+
| `transition` | For a test's steps: milliseconds a control that appeared or moved with the last action gets to finish arriving before it is acted on, default `500`. Controls already in place before the action are acted on at once. |
|
|
66
|
+
| `launchArguments` | Arguments every fresh launch of the pinned app carries (`app.open()`, `app.restart()`, `app.clearState()`): the process arguments on iOS, `am start` arguments on Android. The warm-up passes none. |
|
|
67
|
+
| `permissions` | Permissions the pinned app holds on every fresh launch, `{ camera: 'grant', location: 'deny', notifications: 'reset' }`, set before the app starts and put back after `app.clearState()` reset them. |
|
|
68
|
+
|
|
69
|
+
Every optional value also accepts `undefined`, so a config passes
|
|
70
|
+
`device: process.env.E2E_DEVICE` or `appPath: process.env.E2E_APP_PATH`
|
|
71
|
+
straight through, with no conditional spread.
|
|
72
|
+
|
|
73
|
+
## What the engine declares
|
|
74
|
+
|
|
75
|
+
- **Observation**: the accessibility tree, projected onto the role vocabulary
|
|
76
|
+
(iOS `Button` becomes `button`, `TextField` becomes `textbox`, `Cell` becomes
|
|
77
|
+
`listitem`; Android `android.widget.TextView` becomes `text`, `EditText`
|
|
78
|
+
becomes `textbox`, `Switch` becomes `switch`), with rects, a viewport, and
|
|
79
|
+
pixels on request with every secure field painted over. Element identifiers
|
|
80
|
+
(`ABOUT`, `android:id/title`) are the node's `testId`, what `getByTestId`
|
|
81
|
+
matches.
|
|
82
|
+
- **Actions**: tap, double tap, long press, fill, clear, check/uncheck (when
|
|
83
|
+
the tree exposes the checked state; Android switches do not), focus on
|
|
84
|
+
editable fields, `Enter`, single-character keys, swipe within a node, drag.
|
|
85
|
+
`selectOption`, `setInputFiles`, `scrollIntoView`, `secondaryTap`, focus on
|
|
86
|
+
a control, and other keys fail with `UNSUPPORTED_CAPABILITY`.
|
|
87
|
+
- **Location**: every `screen` query, plus agent-device selectors through
|
|
88
|
+
`device.locator('role=NavigationBar id=General')`.
|
|
89
|
+
- **Viewport swipe**, `app.back()`, `app.restart()`, `app.clearState()`, and
|
|
90
|
+
redacted screenshots under the attempt artifact directory: the bounds of
|
|
91
|
+
every secure field are painted black before the file is kept, and a
|
|
92
|
+
screenshot that cannot be redacted is not written. No `state` capability: a
|
|
93
|
+
simulator has no portable session snapshot.
|
|
94
|
+
|
|
95
|
+
## Trace cache
|
|
96
|
+
|
|
97
|
+
The runner caches `agent.act` steps by their location anchor, and a device has
|
|
98
|
+
no address bar. This engine reports one anyway: `<bundle id> / <screen
|
|
99
|
+
title>`, with the title read off the navigation bar on iOS and the collapsing
|
|
100
|
+
toolbar on Android. The app identity is part of the location, so two apps with
|
|
101
|
+
a "General" screen never share an anchor. A step recorded on
|
|
102
|
+
`com.apple.Preferences / General` replays only when that app is on that
|
|
103
|
+
screen again, and a flow that stays within tap, type, and scroll replays with
|
|
104
|
+
zero model calls. Pin `app` and call `app.open()` first, so steps start on
|
|
105
|
+
the same screen, and
|
|
106
|
+
prefer the grammar over the `open_app` tool inside a step: a tool call is a
|
|
107
|
+
replay gap.
|
|
108
|
+
|
|
109
|
+
## The `device` fixture
|
|
110
|
+
|
|
111
|
+
Deterministic device management, recorded as `device.<method>` steps. Import
|
|
112
|
+
`test` from this package to have it typed.
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
import { test } from '@e2e-dev/mobile';
|
|
116
|
+
import { expect } from 'e2e';
|
|
117
|
+
|
|
118
|
+
test('shows the version offline in dark mode', async ({ agent, device, screen }) => {
|
|
119
|
+
await device.setAppearance('dark');
|
|
120
|
+
await device.setNetwork('offline');
|
|
121
|
+
await agent.act('go to General, then About');
|
|
122
|
+
await expect(screen.getByRole('button', { name: /^iOS Version/ })).toBeVisible();
|
|
123
|
+
await expect(device.locator('role=NavigationBar id=About')).toBeVisible();
|
|
124
|
+
});
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Methods: `setNetwork`, `setAirplaneMode`, `setPermission`, `setLocation`,
|
|
128
|
+
`clearLocation`, `setAppearance`, `setOrientation`, `setBiometrics`,
|
|
129
|
+
`enrollBiometrics`, `installApp`, `openApp`, `closeApp`, `clearKeychain`,
|
|
130
|
+
`foregroundApp`, `home`, `back`, `alert`, `dismissKeyboard`, `clipboard`,
|
|
131
|
+
`setClipboard`, and the `locator` accessor.
|
|
132
|
+
|
|
133
|
+
`installApp(appPath, { app, reinstall })` puts a build on the device from a
|
|
134
|
+
test, for upgrade and fresh-install paths the `appPath` option cannot express.
|
|
135
|
+
A plain install replaces the binary and keeps its data; `reinstall: true`
|
|
136
|
+
removes the app named by `app` (default: the pinned app) first. It resolves to
|
|
137
|
+
the bundle id or package to `openApp` the build by. `openApp` takes an app id,
|
|
138
|
+
never a link; `openLink` opens one, under the navigation rule.
|
|
139
|
+
|
|
140
|
+
## Agent tools
|
|
141
|
+
|
|
142
|
+
`@e2e-dev/mobile/tools` exports `mobileTools(...engines)`: `open_app`,
|
|
143
|
+
`swipe` (free-form, in logical pixels), and `alert` (accept or dismiss a
|
|
144
|
+
system alert). It takes at least one engine. Pass every device engine the
|
|
145
|
+
config declares: tool names are fixed, so two packs cannot be merged, and the
|
|
146
|
+
pack dispatches each call to the engine whose attempt is running. Tools are
|
|
147
|
+
scoped to the platforms of those engines, so a suite that mixes web and device
|
|
148
|
+
targets can hand the pack to one `createAgent`.
|
|
149
|
+
|
|
150
|
+
## Secrets
|
|
151
|
+
|
|
152
|
+
`type_secret` and `screen.getByLabel(...).fill(secret)` fill declared secrets
|
|
153
|
+
on a device: a credential's password into a secure field, a `secrets` entry
|
|
154
|
+
into any editable input. The model never sees the value, and screenshots are
|
|
155
|
+
withheld for the rest of the attempt.
|
|
156
|
+
|
|
157
|
+
## Documentation
|
|
158
|
+
|
|
159
|
+
Full documentation lives at [e2e.tester.army/docs](https://e2e.tester.army/docs).
|
package/dist/.build.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"0.8.0-canary-20260928184528"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** The action kinds a device surface declares, and the pointer dispatch that agrees with them. */
|
|
2
|
+
import type { LocatorActionKind, PointerAction, PointerActionKind, ViewportPoint } from 'e2e/engine';
|
|
3
|
+
import type { AgentDeviceClient } from './options.ts';
|
|
4
|
+
/**
|
|
5
|
+
* The action kinds a device honors, declared so the harness offers exactly
|
|
6
|
+
* these: no `select` verb on a device (`selectOption`, `setInputFiles`, and
|
|
7
|
+
* `scrollIntoView` have no touch equivalent), and `perform` still refuses a
|
|
8
|
+
* declared kind one node cannot take (`check` on a toggle whose state is
|
|
9
|
+
* unknown, `focus` on anything but a field).
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* How long a `longPress` holds when the caller names no duration: the agent's
|
|
13
|
+
* `long_press` tool and a test's bare `longPress()`. agent-device's own
|
|
14
|
+
* default is under half a second, shorter than a React Native `Pressable`'s
|
|
15
|
+
* `delayLongPress` of 500 ms, let alone the longer thresholds apps set, so a
|
|
16
|
+
* default hold there registers as a tap. One second clears them the way
|
|
17
|
+
* Detox's default does; a test that needs more passes `duration`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_LONG_PRESS_MS = 1000;
|
|
20
|
+
export declare const DEVICE_ACTIONS: readonly LocatorActionKind[];
|
|
21
|
+
/**
|
|
22
|
+
* The pointer actions a device honors at a bare point: agent-device presses
|
|
23
|
+
* and swipes by coordinates, so taps, double taps, long presses, and a swipe
|
|
24
|
+
* to another point land anywhere. A coordinate hover, secondary tap, or drag
|
|
25
|
+
* (a hold before the move, unlike a swipe) has no touch equivalent it exposes
|
|
26
|
+
* without a node, and a directional swipe at a bare point has no length, so
|
|
27
|
+
* only the screen root scrolls that way.
|
|
28
|
+
*/
|
|
29
|
+
export declare const DEVICE_POINTER_ACTIONS: readonly PointerActionKind[];
|
|
30
|
+
/**
|
|
31
|
+
* Issues one pointer action at a screen point in logical pixels. `settle` is
|
|
32
|
+
* the device's quiet-wait options, spread onto the interaction as the node
|
|
33
|
+
* actions do. A double tap is two presses (`count: 2`), as it is on a node:
|
|
34
|
+
* agent-device's own double-tap gesture reaches a React Native `Pressable`
|
|
35
|
+
* on iOS as one press, while two presses in a row land about 285 ms apart.
|
|
36
|
+
* The kinds outside `DEVICE_POINTER_ACTIONS` never arrive: the harness
|
|
37
|
+
* routes only declared kinds. They are refused here so the switch stays
|
|
38
|
+
* exhaustive against the contract.
|
|
39
|
+
*/
|
|
40
|
+
export declare function pointerInteraction(client: AgentDeviceClient, point: ViewportPoint, action: PointerAction, settle: Record<string, unknown>): Promise<unknown>;
|
|
41
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACrG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,SAAS,iBAAiB,EAatD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,iBAAiB,EAAiD,CAAC;AAEjH;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
|
package/dist/actions.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** The action kinds a device surface declares, and the pointer dispatch that agrees with them. */
|
|
2
|
+
import { unsupported } from './support.js';
|
|
3
|
+
/**
|
|
4
|
+
* The action kinds a device honors, declared so the harness offers exactly
|
|
5
|
+
* these: no `select` verb on a device (`selectOption`, `setInputFiles`, and
|
|
6
|
+
* `scrollIntoView` have no touch equivalent), and `perform` still refuses a
|
|
7
|
+
* declared kind one node cannot take (`check` on a toggle whose state is
|
|
8
|
+
* unknown, `focus` on anything but a field).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* How long a `longPress` holds when the caller names no duration: the agent's
|
|
12
|
+
* `long_press` tool and a test's bare `longPress()`. agent-device's own
|
|
13
|
+
* default is under half a second, shorter than a React Native `Pressable`'s
|
|
14
|
+
* `delayLongPress` of 500 ms, let alone the longer thresholds apps set, so a
|
|
15
|
+
* default hold there registers as a tap. One second clears them the way
|
|
16
|
+
* Detox's default does; a test that needs more passes `duration`.
|
|
17
|
+
*/
|
|
18
|
+
export const DEFAULT_LONG_PRESS_MS = 1_000;
|
|
19
|
+
export const DEVICE_ACTIONS = [
|
|
20
|
+
'tap',
|
|
21
|
+
'doubleTap',
|
|
22
|
+
'longPress',
|
|
23
|
+
'fill',
|
|
24
|
+
'clear',
|
|
25
|
+
'press',
|
|
26
|
+
'check',
|
|
27
|
+
'uncheck',
|
|
28
|
+
'focus',
|
|
29
|
+
'hover',
|
|
30
|
+
'dragTo',
|
|
31
|
+
'swipe',
|
|
32
|
+
];
|
|
33
|
+
/**
|
|
34
|
+
* The pointer actions a device honors at a bare point: agent-device presses
|
|
35
|
+
* and swipes by coordinates, so taps, double taps, long presses, and a swipe
|
|
36
|
+
* to another point land anywhere. A coordinate hover, secondary tap, or drag
|
|
37
|
+
* (a hold before the move, unlike a swipe) has no touch equivalent it exposes
|
|
38
|
+
* without a node, and a directional swipe at a bare point has no length, so
|
|
39
|
+
* only the screen root scrolls that way.
|
|
40
|
+
*/
|
|
41
|
+
export const DEVICE_POINTER_ACTIONS = ['tap', 'doubleTap', 'longPress', 'swipeTo'];
|
|
42
|
+
/**
|
|
43
|
+
* Issues one pointer action at a screen point in logical pixels. `settle` is
|
|
44
|
+
* the device's quiet-wait options, spread onto the interaction as the node
|
|
45
|
+
* actions do. A double tap is two presses (`count: 2`), as it is on a node:
|
|
46
|
+
* agent-device's own double-tap gesture reaches a React Native `Pressable`
|
|
47
|
+
* on iOS as one press, while two presses in a row land about 285 ms apart.
|
|
48
|
+
* The kinds outside `DEVICE_POINTER_ACTIONS` never arrive: the harness
|
|
49
|
+
* routes only declared kinds. They are refused here so the switch stays
|
|
50
|
+
* exhaustive against the contract.
|
|
51
|
+
*/
|
|
52
|
+
export function pointerInteraction(client, point, action, settle) {
|
|
53
|
+
const at = { x: point.x, y: point.y };
|
|
54
|
+
switch (action.kind) {
|
|
55
|
+
case 'tap':
|
|
56
|
+
return client.interactions.press({ ...at, ...settle });
|
|
57
|
+
case 'doubleTap':
|
|
58
|
+
return client.interactions.press({ ...at, count: 2, ...settle });
|
|
59
|
+
case 'longPress':
|
|
60
|
+
return client.interactions.longPress({ ...at, ...settle, durationMs: action.durationMs ?? DEFAULT_LONG_PRESS_MS });
|
|
61
|
+
case 'swipeTo':
|
|
62
|
+
return client.interactions.swipe({ from: at, to: { x: action.target.x, y: action.target.y } });
|
|
63
|
+
case 'secondaryTap':
|
|
64
|
+
case 'hover':
|
|
65
|
+
case 'dragTo':
|
|
66
|
+
case 'swipe':
|
|
67
|
+
throw unsupported(`agent-device cannot perform "${action.kind}" at a bare point`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAIlG,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE3C,MAAM,CAAC,MAAM,cAAc,GAAiC;IAC1D,KAAK;IACL,WAAW;IACX,WAAW;IACX,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;IACT,OAAO;IACP,OAAO;IACP,QAAQ;IACR,OAAO;CACR,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AAEjH;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAyB,EACzB,KAAoB,EACpB,MAAqB,EACrB,MAA+B;IAE/B,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,KAAK;YACR,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;QACzD,KAAK,WAAW;YACd,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;QACnE,KAAK,WAAW;YACd,OAAO,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,qBAAqB,EAAE,CAAC,CAAC;QACrH,KAAK,SAAS;YACZ,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACjG,KAAK,cAAc,CAAC;QACpB,KAAK,OAAO,CAAC;QACb,KAAK,QAAQ,CAAC;QACd,KAAK,OAAO;YACV,MAAM,WAAW,CAAC,gCAAgC,MAAM,CAAC,IAAI,mBAAmB,CAAC,CAAC;IACtF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What one worker slot drives, and how it travels from the runner's `prepare`
|
|
3
|
+
* to the worker's `init`. Every way a pool comes by devices (a configured
|
|
4
|
+
* list, the booted devices it discovered, the leases a provider granted) is
|
|
5
|
+
* one `DeviceSource` that ends in one `SlotBinding` per slot, so the worker
|
|
6
|
+
* reads one shape through one environment variable, whatever produced it.
|
|
7
|
+
*/
|
|
8
|
+
import type { createAgentDeviceClient } from 'agent-device';
|
|
9
|
+
import { type EngineFinishInfo, type EnginePrepareInfo } from 'e2e/engine';
|
|
10
|
+
import type { MobileOptions } from './options.ts';
|
|
11
|
+
type AgentDeviceClientConfig = NonNullable<Parameters<typeof createAgentDeviceClient>[0]>;
|
|
12
|
+
/** An agent-device daemon other than the local one. */
|
|
13
|
+
export interface DeviceDaemon {
|
|
14
|
+
/** Base URL answering agent-device's `GET /health` and `POST /rpc`. */
|
|
15
|
+
readonly baseUrl: string;
|
|
16
|
+
/** Bearer token the daemon expects, when it wants one. */
|
|
17
|
+
readonly authToken?: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* agent-device client configuration the worker's client is created with, on
|
|
21
|
+
* top of the session name the engine owns and the `daemon` address: the lease
|
|
22
|
+
* scope a daemon resolves a hosted device by (`tenant`, `runId`, `leaseId`,
|
|
23
|
+
* `leaseBackend`, `leaseProvider`), the `stateDir` of a daemon other than the
|
|
24
|
+
* default one, provider options. JSON data only, since it travels to the
|
|
25
|
+
* worker through the environment; `session`, `daemonBaseUrl`,
|
|
26
|
+
* `daemonAuthToken`, and the transport are not part of it.
|
|
27
|
+
*/
|
|
28
|
+
export type DeviceClientConfig = Omit<AgentDeviceClientConfig, 'session' | 'daemonBaseUrl' | 'daemonAuthToken' | 'daemonTransport'>;
|
|
29
|
+
/** How a worker's agent-device client reaches its device: which daemon, and with what configuration. */
|
|
30
|
+
export type DeviceConnection = Pick<SlotBinding, 'daemon' | 'client'>;
|
|
31
|
+
/** What one worker slot drives; `{}` leaves every choice to the local daemon. */
|
|
32
|
+
export interface SlotBinding {
|
|
33
|
+
/** Device to select by name; absent, `deviceId` selects one, or the daemon picks a booted one. */
|
|
34
|
+
readonly device?: string | undefined;
|
|
35
|
+
/** Device to select by the id agent-device lists it under: a simulator UDID or an Android serial. */
|
|
36
|
+
readonly deviceId?: string | undefined;
|
|
37
|
+
/** The agent-device daemon to connect to; absent, the local one. */
|
|
38
|
+
readonly daemon?: DeviceDaemon | undefined;
|
|
39
|
+
/** Client configuration for that daemon; absent, the client's defaults. */
|
|
40
|
+
readonly client?: DeviceClientConfig | undefined;
|
|
41
|
+
/** App a provider already installed from `appPath`, so the worker installs nothing and opens this. */
|
|
42
|
+
readonly installedApp?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* App the warm-up in `prepare` opened in the slot's session, which the
|
|
45
|
+
* worker resumes: a permission command there already acts on it. Absent
|
|
46
|
+
* when nothing was opened, or the open failed. Every worker of the slot
|
|
47
|
+
* reads it, but only a worker that finds the session still open keeps it:
|
|
48
|
+
* one retired after a failing test closed it.
|
|
49
|
+
*/
|
|
50
|
+
readonly sessionApp?: string | undefined;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Where a pool's devices come from. `bind` runs once per run and target in
|
|
54
|
+
* `prepare`; `finish` releases what `bind` acquired, when anything was.
|
|
55
|
+
*/
|
|
56
|
+
export interface DeviceSource {
|
|
57
|
+
/** Workers served per target, one per device, when known before `prepare`. */
|
|
58
|
+
readonly size?: number | undefined;
|
|
59
|
+
/** What a worker drives when its run had no `prepare`; `undefined` leaves the choice to the local daemon. */
|
|
60
|
+
readonly fallback?: readonly SlotBinding[] | undefined;
|
|
61
|
+
/** One binding per worker slot the run will use, `info.slots` at most and never none. */
|
|
62
|
+
bind(info: EnginePrepareInfo): Promise<readonly SlotBinding[]>;
|
|
63
|
+
finish?(info: EngineFinishInfo): Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
/** What a binding calls its device in progress and error lines: the name, else the id, else nothing. */
|
|
66
|
+
export declare function deviceLabel(binding: Pick<SlotBinding, 'device' | 'deviceId'> | undefined): string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The app a slot's `app.open()` launches, and its warm-up opens once: the
|
|
69
|
+
* `app` option, else the app the build `appPath` installed, once the suite's
|
|
70
|
+
* `device.installApp()` (or a device provider) has. `undefined` with a build
|
|
71
|
+
* nobody has installed and no `app`.
|
|
72
|
+
*/
|
|
73
|
+
export declare function pinnedApp(options: Pick<MobileOptions, 'app' | 'appPath'>, installedApp: string | undefined): string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The environment variable a target's bindings travel to the workers in: the
|
|
76
|
+
* name made environment-safe for reading, plus a digest of the exact name so
|
|
77
|
+
* `ios-a` and `ios.a` never share a key.
|
|
78
|
+
*/
|
|
79
|
+
export declare function bindingsVariable(targetName: string): string;
|
|
80
|
+
/** Serializes the bindings for the environment: declared fields only, bounded. */
|
|
81
|
+
export declare function encodeBindings(bindings: readonly SlotBinding[]): string;
|
|
82
|
+
/** The bindings a `prepare` left in the environment, or `undefined` when there are none it can read. */
|
|
83
|
+
export declare function decodeBindings(raw: string | undefined): readonly SlotBinding[] | undefined;
|
|
84
|
+
/** A binding as JSON parses it back, or as a provider returned it: nothing the engine did not write is trusted. */
|
|
85
|
+
export declare function isSlotBinding(value: unknown): value is SlotBinding;
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=bindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAoB,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,KAAK,uBAAuB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1F,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,eAAe,GAAG,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;AAEpI,wGAAwG;AACxG,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC;AAEtE,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,kGAAkG;IAClG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,qGAAqG;IACrG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,oEAAoE;IACpE,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAC3C,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACjD,sGAAsG;IACtG,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,6GAA6G;IAC7G,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,CAAC;IACvD,yFAAyF;IACzF,IAAI,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAAC;IAC/D,MAAM,CAAC,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,UAAU,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAE7G;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,SAAS,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAE/H;AASD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAI3D;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAsBvE;AAED,wGAAwG;AACxG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,WAAW,EAAE,GAAG,SAAS,CAS1F;AAMD,mHAAmH;AACnH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAWlE"}
|