Skip to content

test: add more e2e tests in options.test.ts#375

Merged
amareshsm merged 1 commit intomainfrom
test/add-more-coverage-for-options
Apr 7, 2026
Merged

test: add more e2e tests in options.test.ts#375
amareshsm merged 1 commit intomainfrom
test/add-more-coverage-for-options

Conversation

@lumirlumir
Copy link
Copy Markdown
Member

@lumirlumir lumirlumir commented Apr 6, 2026

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

While working on #299, I found that the options.test.ts e2e test was missing some cases because it only verifies the basic portion of the options UI. I added more test cases to ensure JavaScript language options and other UI elements are also covered.

To make the test sequence clearer and avoid breaking the current test structure, I used test.step. I've also added the exact: true option when checking the name, since it makes the test stricter, as mentioned below:

image
Whether name is matched exactly: case-sensitive and whole-string. Defaults to false. Ignored when name is a regular expression.

What changes did you make? (Give an overview)

This PR add more tests in options.test.ts.

Related Issues

N/A

Is there anything you'd like reviewers to focus on?

N/A

Copilot AI review requested due to automatic review settings April 6, 2026 10:29
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 6, 2026

Deploy Preview for eslint-code-explorer ready!

Name Link
🔨 Latest commit d070cba
🔍 Latest deploy log https://app.netlify.com/projects/eslint-code-explorer/deploys/69d38b1b2a6dc40008a3ea87
😎 Deploy Preview https://deploy-preview-375--eslint-code-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

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 expands Playwright E2E coverage for the Language Options popover, adding assertions for JavaScript language options and strengthening checks for the existing language option panels.

Changes:

  • Refactors e2e-tests/options.test.ts into clearly labeled test.step blocks per language.
  • Adds assertions for JavaScript option controls (Parser, Source Type, ECMAScript Version, JSX).
  • Expands existing language checks to validate the selected language and key default option values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lumirlumir lumirlumir changed the title test: add more tests in options.test.ts test: add more e2e tests in options.test.ts Apr 6, 2026
Copy link
Copy Markdown
Member

@amareshsm amareshsm left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@amareshsm amareshsm merged commit d7b95cf into main Apr 7, 2026
14 checks passed
@amareshsm amareshsm deleted the test/add-more-coverage-for-options branch April 7, 2026 07:44
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

4 participants