Skip to content

Fix: (index.d.ts) remove globals, add missing exports#5597

Open
danielrentz wants to merge 1 commit into
codeceptjs:4.xfrom
danielrentz:fix/indexdts
Open

Fix: (index.d.ts) remove globals, add missing exports#5597
danielrentz wants to merge 1 commit into
codeceptjs:4.xfrom
danielrentz:fix/indexdts

Conversation

@danielrentz
Copy link
Copy Markdown
Contributor

@danielrentz danielrentz commented Jun 2, 2026

Motivation/Description of the PR

Fixes for typings/index.d.ts:

  • remove global declarations removed in v4
  • add missing named exports added in v4 (session, inject, locate).

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium

Applicable plugins:

  • aiTrace
  • autoDelay
  • autoLogin
  • customLocator
  • pause
  • coverage
  • heal
  • retryFailedStep
  • screenshot
  • selenoid
  • stepTimeout
  • subtitles

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 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)

@kobenguyent
Copy link
Copy Markdown
Collaborator

I supposed the Appium tests failed as expected due to this PR is from forked repo.

> codeceptjs@4.0.0-rc.1 test:appium-other
> mocha test/helper/Appium_test.js --grep 'second' --reporter @testomatio/reporter/mocha

[TESTOMATIO] Testomatio Reporter v2.8.4
[TESTOMATIO] Pipes: No pipes enabled
[TESTOMATIO] If you want to use Testomatio reporter, pass your token as TESTOMATIO env variable
2026-06-02T11:49:42.047Z ERROR webdriver: WebDriverError: failed serving request POST /wd/hub/session: Unauthorized when running "http://ondemand.saucelabs.com/wd/hub/session" with method "POST"
2026-06-02T11:49:42.048Z ERROR webdriver: unknown error: WebDriverError: failed serving request POST /wd/hub/session: Unauthorized when running "http://ondemand.saucelabs.com/wd/hub/session" with method "POST"
    at FetchRequest._request (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriver/build/node.js:1960:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async startWebDriverSession (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriver/build/node.js:1062:16)
    at async _WebDriver.newSession (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriver/build/node.js:1484:41)
    at async Module.remote (file:///home/runner/work/CodeceptJS/CodeceptJS/node_modules/webdriverio/build/node.js:8942:20)
    at async Appium._startBrowser (file:///home/runner/work/CodeceptJS/CodeceptJS/lib/helper/Appium.js:327:24)
    at async Context.<anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/helper/Appium_test.js:56:5)
✖ Appium "before all" hook in "Appium" Can't connect to WebDriver.
Error: Session request was not authorized because you either did provide a wrong access key or tried to run in a region that has not been enabled for your user. If have registered a free trial account it is connected to a specific region. Ensure this region is set in your configuration (https://webdriver.io/docs/options.html#region).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants