Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#1552: Test Scenario Editor: Update @kie-tools/dmn-vscode-extension to add the new Test Scenario Editor #2860

Merged
merged 29 commits into from
Jan 22, 2025

Conversation

yesamer
Copy link
Contributor

@yesamer yesamer commented Jan 16, 2025

Closes apache/incubator-kie-issues#1552

In this PR we finally introduce the first "alpha" version of the new Test Scenario Editor in our dmn-vscode extension.
The editor is not still completed, but I believe it's important to have this get merged to simply the future testing phase, and the development of the missing features (eg. apache/incubator-kie-issues#1514)

Screen.Recording.2025-01-15.at.17.13.54.mov

Don't expect any other feature change or update in this PR.
It's worth to mention I applied some changes on the CSS side to make the editor usable in VSCode.

@yesamer yesamer requested a review from tiagobento as a code owner January 16, 2025 09:33
@yesamer yesamer added the pr: wip PR is still under development label Jan 16, 2025
@yesamer yesamer removed the pr: wip PR is still under development label Jan 21, 2025
Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I did only very basic sanity test. I will do more proper one once apache/incubator-kie-issues#970 is implemented.

One observation is that extension homepage should be updated probably:
image

Second is the DMN Namespace mocked as https:\kiegroup, we should use proper http or https format and not mention kiegroup anymore

@@ -395,7 +396,7 @@ export const TestScenarioEditorInternal = ({
console.trace("[TestScenarioEditorInternal] File Status: " + TestScenarioFileStatus[scesimFileStatus]);

return (
<div ref={testScenarioEditorRootElementRef}>
<div ref={testScenarioEditorRootElementRef} data-testid="kie-tools--scesim-editor--container">
Copy link
Contributor

Choose a reason for hiding this comment

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

This is my mistake. I am sorry. Looking on the rest of the codebase, I think the value we should use should be probably something like: kie-scesim-editor--container or kie-scesim-editor-container or kie-scesim-editor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -61,6 +61,6 @@ export class Editor {
}

public get() {
return this.page.getByTestId("test-scenario-editor");
return this.page.getByTestId("kie-tools--scesim-editor--container");
Copy link
Contributor

Choose a reason for hiding this comment

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

This is my mistake. I am sorry. Looking on the rest of the codebase, I think the value we should use should be probably something like: kie-scesim-editor--container or kie-scesim-editor-container or kie-scesim-editor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@yesamer
Copy link
Contributor Author

yesamer commented Jan 22, 2025

Thank you @jomarko, I updated the extension homepage to better reflect the current status. The gifs are both targeting the old editors, I guess we can replace them the moment we set the new editors as the default.
Removed mocked reference to kiegroup.

Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

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

Thank you @yesamer

@tiagobento tiagobento merged commit 716e33b into apache:main Jan 22, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Scenario Editor: Update @kie-tools/dmn-vscode-extension to add the new Test Scenario Editor
3 participants