Skip to content

[ZEPPELIN-6358] Remove anti-patterns of E2E and tidy test suite#5207

Draft
jongyoul wants to merge 1 commit intoapache:branch-0.12from
jongyoul:ZEPPELIN-6358-e2e-tidy-branch-0.12
Draft

[ZEPPELIN-6358] Remove anti-patterns of E2E and tidy test suite#5207
jongyoul wants to merge 1 commit intoapache:branch-0.12from
jongyoul:ZEPPELIN-6358-e2e-tidy-branch-0.12

Conversation

@jongyoul
Copy link
Copy Markdown
Member

@jongyoul jongyoul commented Apr 4, 2026

Summary

Test plan

  • CI pipeline (frontend.yml) E2E tests

Applied the [`e2e-reviewer`](https://github.com/dididy/e2e-skills) skill on the existing E2E suite. The skill does static analysis — it catches tests that can never actually fail, silent skips, swallowed errors in POM methods, that kind of thing.

Findings and fixes:

- `home-page-enhanced-functionality.spec.ts` was mostly duplicating `home-page-elements` and `home-page-note-operations` → deleted and merged
- `toBeGreaterThanOrEqual(0)` and `toBeAttached()` on static elements were always passing → replaced with assertions that can fail
- `if (isVisible) { expect() }` patterns silently skip when something breaks → removed or converted to `test.skip`
- Several POM methods had `.catch(() => {})` with no comment → removed; kept the intentional ones and marked with `// JUSTIFIED:`
- `document.querySelector` in `page.evaluate()` → swapped for Playwright locator API
- Added `aria-label` / `data-testid` to action bar HTML; a few tests were breaking on DOM structure changes
- Renamed a handful of tests whose names didn't match what they actually tested; dropped the ones that only called `toBeVisible()`

Improvement
Refactoring

ZEPPELIN-6358

* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Closes apache#5180 from dididy/tidy-e2e.

Signed-off-by: Jongyoul Lee <jongyoul@gmail.com>
(cherry picked from commit 076676a)
@dididy
Copy link
Copy Markdown
Contributor

dididy commented Apr 4, 2026

스크린샷 2026-04-04 오후 11 36 58 스크린샷 2026-04-04 오후 11 33 11

The failures are occurring in the React layer of the micro-frontend, and they appear to be flaky. I’ll investigate the root cause and share findings and potential fixes in the draft. (If needed, I’ll follow up with an additional PR)

Also, I noticed several audit issues in the zeppelin-react-related packages. I’ll create a separate PR to address them all at once.

@jongyoul
Copy link
Copy Markdown
Member Author

jongyoul commented Apr 5, 2026

@dididy You can freely modiry and/or create a your own PR. I just wanted to adopt it to branch-0.12. Could you please help to handle it? 🙏

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