Skip to content

fix: Fix actor type #2616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2020
Merged

fix: Fix actor type #2616

merged 1 commit into from
Oct 9, 2020

Conversation

akoltun
Copy link
Contributor

@akoltun akoltun commented Oct 8, 2020

Motivation/Description of the PR

According documentation (https://codecept.io/pageobjects/#dependency-injection) actor can be extended with function that can have any arguments. But the present type definition (() => void) allows only functions without arguments.
This bug fix changes type definition in order to allow the use of functions with any number of any arguments.

Applicable helpers:

  • WebDriver
  • Puppeteer
  • Nightmare
  • REST
  • FileHelper
  • Appium
  • Protractor
  • TestCafe
  • Playwright

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • puppeteerCoverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • wdio

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 📋 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)

According documentation (https://codecept.io/pageobjects/#dependency-injection) actor can be extended with function that can have any arguments. Therefore type definition should allow function with any arguments and not only functions without arguments.
@Vorobeyko Vorobeyko self-requested a review October 9, 2020 09:23
@kobenguyent kobenguyent merged commit 4ac1a1f into codeceptjs:3.x Oct 9, 2020
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.

3 participants