Skip to content

fix: e2e lazy-compialtion/default-prefix flasky#11610

Merged
stormslowly merged 1 commit intomainfrom
fix/e2e
Sep 10, 2025
Merged

fix: e2e lazy-compialtion/default-prefix flasky#11610
stormslowly merged 1 commit intomainfrom
fix/e2e

Conversation

@JSerFeng
Copy link
Contributor

@JSerFeng JSerFeng commented Sep 8, 2025

Summary

One of the e2e cases (lazy-compilation/default-prefix) has flasky, this may fix that

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings September 8, 2025 03:58
@netlify
Copy link

netlify bot commented Sep 8, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit a8e83d1
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68c0dd2c94d7e5000805462a
😎 Deploy Preview https://deploy-preview-11610--rspack.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.

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Sep 8, 2025
@JSerFeng JSerFeng changed the title fix: e2e flasky fix: e2e lazy-compialtion/default-prefix flasky Sep 8, 2025
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 fixes a flaky end-to-end test in the lazy-compilation/default-prefix test case by reordering code execution and improving test timing reliability.

  • Moves button DOM insertion after event listener setup in the JavaScript source
  • Reorders test actions to wait for lazy compilation response before triggering the click
  • Adds explicit wait for button element before interaction

Reviewed Changes

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

File Description
tests/e2e/cases/lazy-compilation/default-prefix/src/index.js Moves DOM insertion after event listener setup
tests/e2e/cases/lazy-compilation/default-prefix/index.test.ts Reorders test flow and adds explicit waits to reduce flakiness

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

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Sep 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

📦 Binary Size-limit

Comparing a8e83d1 to test: fix concurrent of config cases (#11618) by harpsealjs

🙈 Size remains the same at 47.23MB

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 8, 2025

CodSpeed Performance Report

Merging #11610 will not alter performance

Comparing fix/e2e (a8e83d1) with main (a6a2a4e)

Summary

✅ 17 untouched benchmarks

@JSerFeng JSerFeng force-pushed the fix/e2e branch 2 times, most recently from 7fe0b41 to 432a638 Compare September 8, 2025 05:51
SyMind
SyMind previously approved these changes Sep 8, 2025
@stormslowly
Copy link
Contributor

let's try

@stormslowly stormslowly merged commit 4c7e856 into main Sep 10, 2025
44 checks passed
@stormslowly stormslowly deleted the fix/e2e branch September 10, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants