Skip to content

Conversation

@rodrigosf672
Copy link
Member

  1. I'm curious to see if this basic test would fail in the CI due to high CPU usage.
  2. This could be used as the new test suite suggested by @testlabauto in Implement allowed extensions filtering in tests #10827.
  3. Do we need a separate tag for @:pyrefly?

QA Notes

@:web @:win @:extensions @:editor

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:pyrefly @:web @:win @:extensions @:editor

readme  valid tags

Copy link
Contributor

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 two new e2e test suites to validate LSP functionality and data visualization:

  • LSP Pyrefly Integration: Introduces a basic completion suggestion test to verify Pyrefly language server functionality with untitled Python files, specifically to assess CI stability under CPU usage
  • Data Explorer Histogram Rounding: Comprehensive test suite validating histogram bin range formatting and precision across various numeric scales

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/e2e/tests/extensions/lsp-pyrefly.test.ts New test file for basic Pyrefly completion suggestions in untitled Python files
test/e2e/tests/data-explorer/histogram-rounding.test.ts New test suite validating histogram bin rounding and display precision across 4 numeric scale scenarios

await app.workbench.clipboard.paste();
await app.workbench.editors.expectEditorToContain('import math');
await app.code.driver.page.keyboard.press('Control+Space');
await expect(app.code.driver.page.locator('.suggest-widget')).toBeVisible();
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

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

The test verifies the suggest widget appears but doesn't validate that completions are actually provided by Pyrefly. Consider adding an assertion to check that at least one completion item exists within the widget to ensure the LSP server is functioning correctly.

Copilot uses AI. Check for mistakes.
await hotKeys.closeAllEditors();
});

const hoverBinWithRange = async (page: any, expectedMin: string, expectedMax: string) => {
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

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

The parameter 'page' should be typed with the proper Playwright Page type instead of 'any' for better type safety and IntelliSense support.

Copilot uses AI. Check for mistakes.
@rodrigosf672 rodrigosf672 requested a review from midleman December 1, 2025 17:17
@rodrigosf672 rodrigosf672 marked this pull request as draft December 2, 2025 22:32
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.

2 participants