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#946: Action plan - Exploratory phase of the strategy for implementing the E2E test suite for the new DMN Editor - Part 2 #2189

Merged
merged 34 commits into from
Mar 7, 2024

Conversation

ljmotta
Copy link
Contributor

@ljmotta ljmotta commented Mar 1, 2024

Related to apache/incubator-kie-issues#946

This PR continues the exploratory phase and continue the work started on #2158

Description

This PR creates introduce and fix a few things:

  • Change storybook port from number to string on the boxed-expression-component and dmn-editor env files. Depending of the terminal the number comes formated with color, causing the server starting with a random port.
  • Remove some data-testid introduced on kie-issues#946: DMN Editor playwright test suite - part 1 - initialization #2158
  • Add data-nodehref and data-nodelabel to help selecting elements on the E2E tests.
  • Make all nodes enter the diagram selected, mimicking the Input Data node.
  • Remove unnecessary titles from OutgoingStuffNodePanel.
  • Improve the DMN Editor Dev Webapp story, by make the Storybook property table work.
  • Add editor, palette, nodes, edges Playwright fixtures
  • Disable Storybook telemetry

Improvements for the next interation

  • Add missing test cases for the invalid operations
  • Create a fixture to check the DMN XML value.

ljmotta and others added 28 commits February 27, 2024 20:22
* introduce deleteNodes.spec.ts

* Refactor 'delete'

* Run all delete node tests

* finalize delete mutation test suite
* Introduce deleteEdge.spec.ts

* Remove 'only'

* test both backspace and delete

* split delete edge spec
* Introduce addWaypoint.spec.ts

* clean up imports

* Fix imports

* refactor addEdgeWaypoint.spec.ts

---------

Co-authored-by: Luiz João Motta <[email protected]>
Copy link
Contributor

@tiagobento tiagobento left a comment

Choose a reason for hiding this comment

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

Two silly comments inline.... but approved! Nice to see fast-paced iterations :)

dmnEditor: {
storybook: {
port: 9901,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are all ports on env/index.js files defined as strings? I know this had the color bug with the special characters and everything, but it's really bugging me that this could be the only place where we need these numbers to be defined as strings...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is happening because we use the STORYBOOK_BASE env variable inside the storybook wrapper. We set the env variable on the start script and them it's used inside the storybook-base bin, thus the terminal color. I choose this approach as I had some problems evaluating the build-env boxedExpressionComponent.storybook.port on Windows due to quotes and double quotes. I guess I need to revist this problem. Anyway, this change should affect only components that use storybook.

@@ -239,20 +239,19 @@ export const InputDataNode = React.memo(
onDoubleClick={triggerEditing}
onKeyDown={triggerEditingIfEnter}
style={alternativeSvgStyle}
className={selectedAlternativeClass}
className={`kie-dmn-editor--node ${selectedAlternativeClass}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

There's one "kie-dmn-editor--node" inside another "kie-dmn-editor--node"?

@tiagobento tiagobento changed the title kie-issues-946: Action plan - Exploratory phase of the strategy for implementing the E2E test suite for the new DMN Editor - Part 2 kie-issues#946: Action plan - Exploratory phase of the strategy for implementing the E2E test suite for the new DMN Editor - Part 2 Mar 7, 2024
@tiagobento tiagobento merged commit 3eaf53c into apache:main Mar 7, 2024
8 checks passed
paulovmr pushed a commit to kiegroup/kie-tools that referenced this pull request Mar 28, 2024
…mplementing the E2E test suite for the new DMN Editor - Part 2 (apache#2189)

Co-authored-by: Jozef Marko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants