Skip to content
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

Implement NightwatchCustomCommands for EnhancedSectionInstance #4292

Closed
MateoAgudGarcia opened this issue Nov 4, 2024 · 0 comments · Fixed by #4298
Closed

Implement NightwatchCustomCommands for EnhancedSectionInstance #4292

MateoAgudGarcia opened this issue Nov 4, 2024 · 0 comments · Fixed by #4298

Comments

@MateoAgudGarcia
Copy link

Description

In order to use Custom Commands in Sections without getting errors in Typescript, you must add the NightwatchCustomCommands typing for EnhancedSectionInstance in the same way as found in EnhancedPageObject

Suggested solution

Add type NightwatchCustomCommands as Commands for Sections

Commands = {},
  Elements = {},
  Sections extends Record<string, PageObjectSection> = {},
  Props = {}
> = EnhancedPageObjectSections<Commands, Elements, Sections, Props> &
  NightwatchCustomCommands &
  Commands &
  ElementCommands &
  ChromiumClientCommands &

Alternatives / Workarounds

No response

Additional Information

No response

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

Successfully merging a pull request may close this issue.

1 participant