[ZEPPELIN-6358] Add E2E tests about /#/notebook/:noteid for New UI#5101
Open
dididy wants to merge 134 commits intoapache:masterfrom
Open
[ZEPPELIN-6358] Add E2E tests about /#/notebook/:noteid for New UI#5101dididy wants to merge 134 commits intoapache:masterfrom
dididy wants to merge 134 commits intoapache:masterfrom
Conversation
d6228ac to
b07b933
Compare
5 tasks
Contributor
|
Could you rebase this onto master branch? |
tbonelee
requested changes
Oct 26, 2025
Contributor
tbonelee
left a comment
There was a problem hiding this comment.
Could you take a quick pass on two areas?
- There are places where try/catch accepts both error and non-error paths. Could we make these more explicit, either intentionally silencing with a clear rationale or failing, so we reduce false positives?
- For browser-specific branches (e.g., notebook-keyboard-page.ts → executePlatformShortcut), could we extract that logic so the main flow reads sequentially and the differences are isolated?
zeppelin-web-angular/e2e/models/notebook-action-bar-page.util.ts
Outdated
Show resolved
Hide resolved
zeppelin-web-angular/e2e/models/notebook-action-bar-page.util.ts
Outdated
Show resolved
Hide resolved
zeppelin-web-angular/e2e/models/notebook-action-bar-page.util.ts
Outdated
Show resolved
Hide resolved
d058c16 to
9bd2f40
Compare
Contributor
Author
1dc6ffa to
f4f51b1
Compare
50eed38 to
07b58b4
Compare
dididy
added a commit
to dididy/zeppelin
that referenced
this pull request
Dec 21, 2025
dididy
added a commit
to dididy/zeppelin
that referenced
this pull request
Dec 21, 2025
dididy
added a commit
to dididy/zeppelin
that referenced
this pull request
Dec 21, 2025
dididy
added a commit
to dididy/zeppelin
that referenced
this pull request
Dec 21, 2025
f069171 to
1d263ec
Compare
dididy
added a commit
to dididy/zeppelin
that referenced
this pull request
Dec 22, 2025
ba47403 to
3f5582c
Compare
Contributor
Author
|
It took some time to incorporate the review feedback, do incremental refactoring, and clean up the tests that were failing in CI.
Once all of those PRs are merged, we can close the current PR accordingly. |
375098e to
4993ecd
Compare
tbonelee
pushed a commit
that referenced
this pull request
Dec 28, 2025
…5101 ### What is this PR for? In #5101, the amount of changes became too large, and a committer suggested splitting it into smaller parts. Since the updates related to the common test environment and shared utility functions have already proven to be stable, I separated those pieces into this dedicated PR. This PR includes only the **safe, standalone changes** that improve the shared E2E environment and utilities. #### [Summary of Changes] * **Refined and separated E2E test environment setup** * Improved global setup/teardown * CI: using ZEPPELIN_E2E_TEST_NOTEBOOK_DIR * To use `ZEPPELIN_E2E_TEST_NOTEBOOK_DIR` locally, the server has to be restarted at least once, which feels a bit odd to enforce during E2E test execution. To make things less messy from a UI perspective, I reorganized the structure so that all tests are collected under `E2E_TEST_FOLDER` instead. * Added folder/notebook initialization and cleanup logic * you can run it standalone with this command:`npm run e2e:cleanup`(automatically run this once the tests are finished) * **Extracted shared utilities and constants** * Added common E2E constant (e.g., `E2E_TEST_FOLDER`) * Introduced cleanup utilities to ensure stable post-test state * **Updated GitHub Actions (`frontend.yml`)** * Added environment variables(for python interpreter), notebook repo initialization, and cleanup steps * Due to potential storage and cost concerns, I shortened the retention period for the `Playwright report` from 30 days to 3 days * **Updated Playwright / ESLint configurations** * ts to cjs ### What type of PR is it? Improvement Refactoring ### Todos ### What is the Jira issue? ZEPPELIN-6358 ### How should this be tested? ```sh cd zeppelin-web-angular nvm use npm run start npm run e2e npm run e2e:cleanup ``` ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5128 from dididy/e2e/notebook-base. Signed-off-by: ChanHo Lee <chanholee@apache.org>
tbonelee
pushed a commit
that referenced
this pull request
Dec 28, 2025
…5101 ### What is this PR for? In #5101, the amount of changes became too large, and a committer suggested splitting it into smaller parts. Since the updates related to the common test environment and shared utility functions have already proven to be stable, I separated those pieces into this dedicated PR. This PR includes only the **safe, standalone changes** that improve the shared E2E environment and utilities. #### [Summary of Changes] * **Refined and separated E2E test environment setup** * Improved global setup/teardown * CI: using ZEPPELIN_E2E_TEST_NOTEBOOK_DIR * To use `ZEPPELIN_E2E_TEST_NOTEBOOK_DIR` locally, the server has to be restarted at least once, which feels a bit odd to enforce during E2E test execution. To make things less messy from a UI perspective, I reorganized the structure so that all tests are collected under `E2E_TEST_FOLDER` instead. * Added folder/notebook initialization and cleanup logic * you can run it standalone with this command:`npm run e2e:cleanup`(automatically run this once the tests are finished) * **Extracted shared utilities and constants** * Added common E2E constant (e.g., `E2E_TEST_FOLDER`) * Introduced cleanup utilities to ensure stable post-test state * **Updated GitHub Actions (`frontend.yml`)** * Added environment variables(for python interpreter), notebook repo initialization, and cleanup steps * Due to potential storage and cost concerns, I shortened the retention period for the `Playwright report` from 30 days to 3 days * **Updated Playwright / ESLint configurations** * ts to cjs ### What type of PR is it? Improvement Refactoring ### Todos ### What is the Jira issue? ZEPPELIN-6358 ### How should this be tested? ```sh cd zeppelin-web-angular nvm use npm run start npm run e2e npm run e2e:cleanup ``` ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5128 from dididy/e2e/notebook-base. Signed-off-by: ChanHo Lee <chanholee@apache.org> (cherry picked from commit a041703) Signed-off-by: ChanHo Lee <chanholee@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR for?
Addition and improvement of notebook-related E2E tests for New UI
/#/notebook/:noteId – View or edit a specific notebook
/#/notebook/:noteId/revision/:revisionId – View a specific revision of a notebook
/#/notebook/:noteId/paragraph/:paragraphId – Notebook paragraph presentation mode
PAGES.WORKSPACE.NOTEBOOK
→ src/app/pages/workspace/notebook/notebook.component
PAGES.WORKSPACE.NOTEBOOK_ACTION_BAR
→ src/app/pages/workspace/notebook/action-bar/action-bar.component
PAGES.WORKSPACE.NOTEBOOK_PARAGRAPH
→ src/app/pages/workspace/notebook/paragraph/paragraph.component
PAGES.WORKSPACE.NOTEBOOK_SIDEBAR
→ src/app/pages/workspace/notebook/sidebar/sidebar.component
PAGES.WORKSPACE.PUBLISHED_PARAGRAPH
→ src/app/pages/workspace/published/paragraph/paragraph.component
What type of PR is it?
Improvement
Todos
What is the Jira issue?
ZEPPELIN-6358
How should this be tested?
Screenshots (if appropriate)
Questions: