Skip to content

test(e2e): fix broken export.spec.ts script - #11

Merged
yusong-shen merged 1 commit into
developmentfrom
fix/e2e-tests
Mar 9, 2026
Merged

test(e2e): fix broken export.spec.ts script#11
yusong-shen merged 1 commit into
developmentfrom
fix/e2e-tests

Conversation

@melon-claw

Copy link
Copy Markdown
Collaborator

The E2E tests for the Quick Export TXT feature were fundamentally broken because they failed to properly target elements inside the #injected_dialog_iframe.

This PR completely rewrites the export.spec.ts test script to:

  • Use Playwright's frameLocator to properly pierce the iframe and interact with the UI.
  • Handle and dismiss the "Latest News" modal when it blocks the screen.
  • Properly navigate the UI flow (Menu > Direct Messages > Select DM > Search) to ensure the "Quick Export TXT" button actually becomes visible before trying to click it.
  • Increase timeouts to safely accommodate network/loading variance.

This should bring the E2E pipeline back to a green state!

@yusong-shen
yusong-shen merged commit 3dd147b into development Mar 9, 2026
2 checks passed
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