Skip to content

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 92
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 2 times, most recently from b6dbb72 to 1a1cd06 Compare November 20, 2025 08:28
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