Skip to content

[ZEPPELIN-6373] Add E2E tests about share area#5114

Merged
tbonelee merged 7 commits intoapache:masterfrom
dididy:e2e/share
Feb 26, 2026
Merged

[ZEPPELIN-6373] Add E2E tests about share area#5114
tbonelee merged 7 commits intoapache:masterfrom
dididy:e2e/share

Conversation

@dididy
Copy link
Contributor

@dididy dididy commented Oct 30, 2025

What is this PR for?

ABOUT_ZEPPELIN:'src/app/share/about-zeppelin/about-zeppelin.component',
CODE_EDITOR:'src/app/share/code-editor/code-editor.component',
FOLDER_RENAME:'src/app/share/folder-rename/folder-rename.component',
HEADER:'src/app/share/header/header.component',
NODE_LIST:'src/app/share/node-list/node-list.component',
NOTE_CREATE:'src/app/share/note-create/note-create.component',
NOTE_IMPORT:'src/app/share/note-import/note-import.component',
NOTE_RENAME:'src/app/share/note-rename/note-rename.component',
NOTE_TOC:'src/app/share/note-toc/note-toc.component',
PAGE_HEADER:'src/app/share/page-header/page-header.component',
RESIZE_HANDLE:'src/app/share/resize-handle/resize-handle.component',
SHORTCUT:'src/app/share/shortcut/shortcut.component',
SPIN:'src/app/share/spin/spin.component',
THEME_TOGGLE:'src/app/share/theme-toggle/theme-toggle.component'

What type of PR is it?

Improvement
Please leave your type of PR only

Todos

What is the Jira issue?

ZEPPELIN-6373

How should this be tested?

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

@dididy dididy force-pushed the e2e/share branch 6 times, most recently from ece19b8 to 8684e2c Compare November 6, 2025 01:04
Copy link
Contributor

@tbonelee tbonelee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Test scenarios look good and are clear.

I've also added several commits that remove unused codes. If they make sense to you, please feel free to incorporate them.
https://github.com/tbonelee/zeppelin/commits/PR_5114-refactor/

Thanks!

Comment on lines 49 to 72
test('Given Create Note modal is open, When entering custom note name and creating, Then new note should be created successfully', async ({
page
}) => {
const uniqueName = `Test Note ${Date.now()}`;
await noteCreateModal.setNoteName(uniqueName);
await noteCreateModal.clickCreate();

await page.waitForURL(/notebook\//);
expect(page.url()).toContain('notebook/');
});

test('Given Create Note modal is open, When entering note name with folder path, Then note should be created in folder', async ({
page
}) => {
const folderPath = `/TestFolder/SubFolder`;
const noteName = `Note ${Date.now()}`;
const fullPath = `${folderPath}/${noteName}`;

await noteCreateModal.setNoteName(fullPath);
await noteCreateModal.clickCreate();

await page.waitForURL(/notebook\//);
expect(page.url()).toContain('notebook/');
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better if we could verify the note name and path.

Comment on lines 105 to 109
const hasError = await noteImportModal.isErrorAlertVisible();
if (hasError) {
const errorMessage = await noteImportModal.getErrorMessage();
expect(errorMessage).toBeTruthy();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason for this to be verified conditionally?

@dididy dididy force-pushed the e2e/share branch 3 times, most recently from 1a1cd06 to d781ace Compare November 20, 2025 08:42
@dididy
Copy link
Contributor Author

dididy commented Feb 25, 2026

Applied the missing review feedback and rebased on master. Sorry for the late turnaround. Thought I'd already applied everything.

@tbonelee tbonelee merged commit cf766db into apache:master Feb 26, 2026
18 of 19 checks passed
tbonelee pushed a commit that referenced this pull request Feb 26, 2026
### What is this PR for?
ABOUT_ZEPPELIN:'src/app/share/about-zeppelin/about-zeppelin.component',
CODE_EDITOR:'src/app/share/code-editor/code-editor.component',
FOLDER_RENAME:'src/app/share/folder-rename/folder-rename.component',
HEADER:'src/app/share/header/header.component',
NODE_LIST:'src/app/share/node-list/node-list.component',
NOTE_CREATE:'src/app/share/note-create/note-create.component',
NOTE_IMPORT:'src/app/share/note-import/note-import.component',
NOTE_RENAME:'src/app/share/note-rename/note-rename.component',
NOTE_TOC:'src/app/share/note-toc/note-toc.component',
PAGE_HEADER:'src/app/share/page-header/page-header.component',
RESIZE_HANDLE:'src/app/share/resize-handle/resize-handle.component',
SHORTCUT:'src/app/share/shortcut/shortcut.component',
SPIN:'src/app/share/spin/spin.component',
THEME_TOGGLE:'src/app/share/theme-toggle/theme-toggle.component'

### What type of PR is it?
Improvement
*Please leave your type of PR only*

### Todos

### What is the Jira issue?
ZEPPELIN-6373

### How should this be tested?

### 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 #5114 from dididy/e2e/share.

Signed-off-by: ChanHo Lee <chanholee@apache.org>
(cherry picked from commit cf766db)
Signed-off-by: ChanHo Lee <chanholee@apache.org>
@tbonelee
Copy link
Contributor

Merged into master and branch-0.12

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