Skip to content

Conversation

kobenguyent
Copy link
Collaborator

Motivation/Description of the PR

  • Description of this PR, which problem it solves
  • 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

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

Copy link
Contributor

@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 adds HEAD request functionality to the REST helper, expanding the available HTTP methods for API testing.

  • Adds a new sendHeadRequest method to the REST helper that sends HEAD requests to REST APIs
  • Updates documentation to include the new HEAD request method and improves markdown formatting consistency
  • Standardizes markdown list formatting from asterisk-based to dash-based lists throughout plugin documentation

Reviewed Changes

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

File Description
lib/helper/REST.js Adds the sendHeadRequest method implementation
docs/plugins.md Converts markdown lists from asterisk to dash format for consistency
docs/helpers/REST.md Documents the new sendHeadRequest method and applies consistent formatting

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +296 to +303
async sendHeadRequest(url, headers = {}) {
const request = {
baseURL: this._url(url),
method: 'HEAD',
headers,
}
return this._executeRequest(request)
}
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

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

The JSDoc parameter documentation is incomplete. The url parameter type should be specified as {string} instead of {*} to match the pattern used by other methods in this class.

Copilot uses AI. Check for mistakes.

@kobenguyent kobenguyent merged commit bad14d1 into 3.x Sep 24, 2025
14 checks passed
@kobenguyent kobenguyent deleted the REST-add-head-request branch September 24, 2025 11:28
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