-
Notifications
You must be signed in to change notification settings - Fork 193
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#1162: Add DMN Boxed Filter expression tests #2308
kie-issues#1162: Add DMN Boxed Filter expression tests #2308
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko Thanks for this PR. I've made some comments inline. Also I've relized it's missing a test on the resize.spec.ts
file. Please add one decription
block there, we need to check the resize there.
packages/boxed-expression-component/tests/e2e/boxedExpressions/boxedExpressionHeader.spec.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests/e2e/boxedExpressions/filter/populate.spec.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests/e2e/boxedExpressions/filter/populate.spec.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/stories/boxedExpressions/Filter/Filter.stories.tsx
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests/e2e/boxedExpressions/filter/populate.spec.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests/e2e/boxedExpressions/filter/populate.spec.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests/e2e/__fixtures__/boxedExpression.ts
Outdated
Show resolved
Hide resolved
0d7eec4
to
5fbeabc
Compare
da7575c
to
960b438
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything in this PR is going to change to an easier way to write and read tests (except the images), but the code you made is going to be reutilized inside the API. So it is better to merge now so I can reuse this code inside the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko Thanks for addressing the previous comments. I've made a few more inline. Also, looking at the screenshots, I don't see a case where we resize the the filter expression to accommodate the inner text. Resizing the in
and the match
would be ideal.
Just a heads up, I've unresolved a previous comment regarding the default Literal Expression
.
...xed-expression-component/src/expressions/FilterExpression/FilterExpressionCollectionCell.tsx
Outdated
Show resolved
Hide resolved
...es/boxed-expression-component/src/expressions/FilterExpression/FilterExpressionMatchCell.tsx
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/stories/boxedExpressions/Filter/Filter.stories.tsx
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/stories/getDefaultBoxedExpressionForStories.ts
Outdated
Show resolved
Hide resolved
packages/boxed-expression-component/tests-e2e/__fixtures__/boxedExpression.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
public async copyFilter(from: Page | Locator = this.page) { | ||
await this.page.getByTestId("logic-type-button-test-id").click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess @danielzhe will change this with the new API?
packages/boxed-expression-component/tests-e2e/features/selection/selection.spec.ts
Outdated
Show resolved
Hide resolved
…ession/FilterExpressionCollectionCell.tsx Co-authored-by: Luiz João Motta <[email protected]>
…ession/FilterExpressionMatchCell.tsx Co-authored-by: Luiz João Motta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielzhe It looks like a bug on the auto resize due to the [
]
? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko Thanks for addressing all changes promptly. I've just saw one thing that slipped through my last review.
test("should correctly reset a nested filter", async ({ boxedExpressionEditor, page, stories }) => { | ||
await stories.openBoxedFilter("nested"); | ||
|
||
await boxedExpressionEditor.resetFilter(page.locator("[data-ouia-component-id=expression-row-0]")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't be using the data-ouia-component-id
.
There was a problem hiding this 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 feedback, changes pushed
Closes apache/incubator-kie-issues#1162