Skip to content

Conversation

@shouples
Copy link
Contributor

@shouples shouples commented Nov 10, 2025

Summary of Changes

We had a few test suites that implemented their own logic to make sure a Kafka topic was created before the actual-test logic ran (and similarly implemented their own logic to delete said topic afterward).

This PR adds a new topic fixture to consolidate creation and deletion logic into one place. No functional changes, nor explicit behavioral changes to affected tests, but is required for #3021

Closes #3014

Optional: Any additional details or context that should be provided?

  • I also added a @requires-topic tag to make it easier to run these affected tests, and may extend the pattern in follow-up branches for things like @requires-schema. (I don't think we'll need @requires-kafka-cluster/@requires-schema-registry/@requires-flink-compute-poll anytime soon, but can revisit later.)
  • I noted some odd default window size related issues between Linux and Windows (comment) and debated trying to set a standard view size for the Electron window, but unfortunately the use.viewPort.[height|width] properties don't work here, and page.setViewportSize( ... ) causes some very odd clipping issues where VS Code UI elements are out of the main playwright viewing area. It's probably better for these tests (and the extension) to be able to work with differently-sized windows anyway, so I'm not pursuing this viewport effort further for now.

Pull request checklist

Please check if your PR fulfills the following (if applicable):

Tests

  • Added new
  • Updated existing
  • Deleted existing

Release notes

  • Does anything in this PR need to be mentioned in the user-facing CHANGELOG?

Comment on lines +90 to +95
/**
* Set up a topic based on the {@linkcode topicConfig} option and return the associated topic
* `name` for tests to reference.
*/
topic: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've debated making this return { name: string } but I don't know what else we would need to return in here in the future, and changing the fixture to topicName felt weird from the perspective of illustrating what the fixture does (setup- and teardown-wise)

@shouples shouples changed the base branch from main to djs/fix-e2e-scrolling December 26, 2025 18:41
@shouples shouples marked this pull request as ready for review December 26, 2025 20:12
@shouples shouples requested a review from a team as a code owner December 26, 2025 20:12
Base automatically changed from djs/fix-e2e-scrolling to main December 29, 2025 15:06
Copilot AI review requested due to automatic review settings December 29, 2025 18:25
Copy link

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@shouples shouples marked this pull request as draft January 6, 2026 17:29
@airlock-confluentinc airlock-confluentinc bot force-pushed the djs/topic-fixture branch 2 times, most recently from 760bb0f to 6c611c9 Compare January 9, 2026 15:23
Comment on lines +36 to +38
// we don't check for the "Local" item here in the event the Confluent Cloud item has children
// and is expanded, because it may push the Local item out of view and adding logic in here to
// scroll to it would be more complex than necessary for this utility function
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Case in point, the differences in default window sizes between running on Linux and running on Windows, where the "Local" item is scrolled out of view on Windows:

Linux Windows
Image Image

@shouples shouples marked this pull request as ready for review January 12, 2026 17:28
Copy link

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

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

retries: 2,
timeout: 120000,
workers: 1,
timeout: 120_000 * CI_FACTOR * WINDOWS_FACTOR, // 2min to 8min on CI Windows
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may be able to drop the base value for this more, but it should be fine here for now. CI+Windows added for consistency to match the expect.timeout config

Copy link
Contributor

@Cerchie Cerchie left a comment

Choose a reason for hiding this comment

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

LGTM! Ran the specs locally

@shouples shouples merged commit a726b1b into main Jan 12, 2026
14 checks passed
@shouples shouples deleted the djs/topic-fixture branch January 12, 2026 20:44
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.

E2E Set up playwright fixture for topic creation/deletion

3 participants