CodeceptJS
CodeceptJS copied to clipboard
fix: appium touch perform
Motivation/Description of the PR
- Clone from https://github.com/codeceptjs/CodeceptJS/pull/5028 to run Android tests
- Resolves #issueId (if applicable).
Applicable helpers:
- [ ] Playwright
- [ ] Puppeteer
- [ ] WebDriver
- [ ] REST
- [ ] FileHelper
- [ ] Appium
- [ ] TestCafe
Applicable plugins:
- [ ] allure
- [ ] autoDelay
- [ ] autoLogin
- [ ] customLocator
- [ ] pauseOnFail
- [ ] coverage
- [ ] retryFailedStep
- [ ] screenshotOnFail
- [ ] selenoid
- [ ] stepByStepReport
- [ ] stepTimeout
- [ ] wdio
- [ ] subtitles
Type of change
- [ ] :fire: Breaking changes
- [ ] :rocket: New functionality
- [ ] :bug: Bug fix
- [ ] 🧹 Chore
- [ ] :clipboard: Documentation changes/updates
- [ ] :hotsprings: Hot fix
- [ ] :hammer: Markdown files fix - not related to source code
- [ ] :nail_care: Polish code
Checklist:
- [ ] Tests have been added
- [ ] Documentation has been added (Run
npm run docs) - [ ] Lint checking (Run
npm run lint) - [ ] Local tests are passed (Run
npm test)
@nlespiaucq would you mind advising this https://github.com/codeceptjs/CodeceptJS/actions/runs/15993586675/job/45111776356#step:6:96
It seems I forgot to update the unit-tests related to this method - I will do it.
- Appium #makeTouchAction should react on touchPerform action @quick: invalid argument: WebDriverError: java.lang.IllegalArgumentException: W3CItemModel: The mandatory field 'actions' is not present in JSON when running "actions" with method "POST" and args "{"actions":[{"action":"press","options":{"x":100,"y":200}},{"action":"release"}]}" at FetchRequest._request (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriver/build/node.js:1803:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Browser.wrapCommandFn (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriverio/node_modules/@wdio/utils/build/index.js:907:23) at async Context.
(test/helper/Appium_test.js:331:7)