Skip to content

fix: plugins documentation generation #4973

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

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Conversation

Lando1n
Copy link

@Lando1n Lando1n commented Apr 24, 2025

Motivation/Description of the PR

This fixes the plugin documentation generation that was broken, then disabled recently.
I traced back the guilty commit to be f27e662, which led me to finding this bug within documentationjs/documentation#1596 where the @deprecated tag causes it to break formatting of headers.

So I:

  • Removed the tag
  • Added a comment stating it's deprecated instead
  • Removed the disabling of the Plugin doc generation
  • Regenerated the documents with npm run def && npm run docs

How it currently looks:
image

However, I'm not sure how to validate what it looks like when hosted like this.

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

  • 🔥 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)

@Lando1n Lando1n changed the title fix plugins documentation generation fix: plugins documentation generation Apr 24, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the plugin documentation generation by re-enabling it and addressing formatting issues caused by the deprecated tag. Key changes include:

  • Removing the early return in runok.js so that documentation is generated.
  • Replacing the @deprecated tag with an inline comment in lib/plugin/commentStep.js.
  • Regenerating and updating the docs/plugins.md file with revised headings and content formats.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
runok.js Removed early return to enable plugin documentation generation.
lib/plugin/commentStep.js Replaced deprecated tag with a comment indicating deprecation.
docs/plugins.md Updated headings and text to improve documentation clarity.

Comment on lines +814 to 815
This plugin can be disabled per test. In this case you will need to stet `I.retry()` to all flaky steps:

Copy link
Preview

Copilot AI Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in 'stet'; consider replacing it with 'set' for clarity.

Suggested change
This plugin can be disabled per test. In this case you will need to stet `I.retry()` to all flaky steps:
This plugin can be disabled per test. In this case you will need to set `I.retry()` to all flaky steps:

Copilot uses AI. Check for mistakes.

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.

1 participant