Skip to content

test: fix flaky watch-files-array e2e test case#5867

Merged
chenjiahan merged 1 commit intomainfrom
watch_files_array_flaky_0818
Aug 18, 2025
Merged

test: fix flaky watch-files-array e2e test case#5867
chenjiahan merged 1 commit intomainfrom
watch_files_array_flaky_0818

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Fix the flaky watch-files-array e2e test case:

watch-files-array3

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings August 18, 2025 02:23
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 18, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 88f77fb
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a28e96dea5de0008d01792
😎 Deploy Preview https://deploy-preview-5867--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (🟢 up 7 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

Copy link
Copy Markdown
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

Fix the flaky watch-files-array e2e test case by refactoring the test to use DOM-based assertions instead of file system operations.

  • Replace console.log with DOM element creation in the test application
  • Remove custom test plugin and use Rsbuild's built-in define functionality for content injection
  • Update test assertions to check DOM content changes instead of file existence

Reviewed Changes

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

File Description
e2e/cases/cli/watch-files-array/src/index.js Replace console.log with DOM element creation and content display
e2e/cases/cli/watch-files-array/rsbuild.config.ts Remove custom plugin and use define configuration for content injection
e2e/cases/cli/watch-files-array/index.test.ts Update test to use Playwright page assertions instead of file system checks

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

@chenjiahan chenjiahan merged commit 79a61a3 into main Aug 18, 2025
12 checks passed
@chenjiahan chenjiahan deleted the watch_files_array_flaky_0818 branch August 18, 2025 02:34
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