@irsprs/mobwright 0.1.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to Mobwright are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0] — 2026-06-19
10
+
11
+ ### Added
12
+
13
+ - **Core library**: TypeScript-first mobile E2E testing framework for Appium, with ESM and CJS builds
14
+ - **Device API**: `device.locator()` with Playwright-style selectors and built-in auto-wait (default 5s timeout)
15
+ - **Selector syntax**: Cross-platform selectors for Android and iOS
16
+ - `~name` — accessibility ID
17
+ - `#name` — resource ID (Android) / name (iOS)
18
+ - `//xpath` — XPath (escape hatch)
19
+ - Plain text — element text
20
+ - **AI-powered locators**: `device.ai('description').tap()` — natural-language element resolution
21
+ - Support for Anthropic Claude, OpenAI GPT, and DeepSeek
22
+ - Confidence scoring and validation
23
+ - Per-locator caching within test
24
+ - Configurable minimum confidence threshold (default 0.5)
25
+ - **Custom matchers**: Playwright-compatible expect matchers for mobile
26
+ - `expect(locator).toBeVisible()`
27
+ - `expect(locator).toHaveText()`
28
+ - `expect(locator).toBeEnabled()`
29
+ - **Session management**: One Appium session per test, automatic setup and teardown
30
+ - **Multi-platform support**: Android emulator and iOS simulator (v0.1 focus)
31
+ - **iOS parallelism**: Out-of-the-box support for running tests against multiple iOS simulators
32
+ - **CLI tools**:
33
+ - `mobwright doctor` — environment health check and validation
34
+ - `mobwright init` — interactive project scaffolding with platform and AI provider selection
35
+ - `mobwright test` — thin wrapper around Playwright test runner with Appium pre-flight check
36
+ - **Developer experience**:
37
+ - Full TypeScript support with strict type checking
38
+ - Comprehensive error messages with actionable fixes
39
+ - Built-in logging with `MOBWRIGHT_LOG` debug flag support
40
+ - Accessibility tree extraction and optimization for AI
41
+ - **CI/CD**: GitLab CI pipeline with lint, typecheck, build, and unit tests
42
+ - **Documentation**: Full README, API reference, troubleshooting guide, and getting started tutorial
43
+
44
+ ### Notes
45
+
46
+ - Android parallelism deferred to v0.2 (requires per-worker device mapping)
47
+ - Real device support deferred to v0.2
48
+ - Self-healing locators deferred to v0.2
49
+ - Test recorder (`mobwright record`) deferred to v0.4
50
+ - Inspector UI (`mobwright codegen`) deferred to v0.5
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2026 IRSYAD PRASETYO
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.