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#1162: Add DMN Boxed Filter expression tests #2308

Merged
merged 27 commits into from
Jun 27, 2024

Conversation

jomarko
Copy link
Contributor

@jomarko jomarko commented May 9, 2024

@jomarko jomarko added the pr: wip PR is still under development label May 13, 2024
@jomarko jomarko marked this pull request as ready for review May 14, 2024 14:31
@jomarko jomarko marked this pull request as draft May 14, 2024 14:31
@jomarko jomarko marked this pull request as ready for review May 16, 2024 07:22
@jomarko jomarko removed the pr: wip PR is still under development label May 16, 2024
Copy link
Contributor

@ljmotta ljmotta left a 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.

@jomarko jomarko force-pushed the kie-issues#1162-filter-expression branch from 0d7eec4 to 5fbeabc Compare June 19, 2024 14:44
@jomarko jomarko force-pushed the kie-issues#1162-filter-expression branch 2 times, most recently from da7575c to 960b438 Compare June 20, 2024 11:58
Copy link
Contributor

@danielzhe danielzhe left a 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.

Copy link
Contributor

@ljmotta ljmotta left a 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.

}

public async copyFilter(from: Page | Locator = this.page) {
await this.page.getByTestId("logic-type-button-test-id").click();
Copy link
Contributor

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?

Copy link
Contributor

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 [ ]? 👀

Copy link
Contributor

@ljmotta ljmotta left a 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]"));
Copy link
Contributor

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.

Copy link
Contributor Author

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

@tiagobento tiagobento merged commit b798710 into apache:main Jun 27, 2024
14 checks passed
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.

Add end-to-end tests for Filter Expression on the Boxed Expression Component
5 participants