-
Notifications
You must be signed in to change notification settings - Fork 34
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
test(atomic): put noProducts action in search-box page object instead of base-page-object #4436
Conversation
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
b1ec210
to
e0f85d2
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.
Why, though?
I don't immediately see the benefit of this change, and the Jira doesn't clarify things for me either 😅
Can you explain what motivates this PR?
Base-page-object is used in in both search and commerce use case. The noProduct call is something specific to commerce. This is just an OOP improvement. The base class should not include methods that are not applicable to all subclasses. |
It doesn't really make sense to have this in the commerce search box page object, though. It's possible to have no products without having a search box. We could have a base commerce page object that extends the base page object... but maybe that's a bit overkill. I would personally tend to leave things as they were 😁 |
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 would close this PR. I'm not convinced the proposed change is an improvement.
https://coveord.atlassian.net/browse/KIT-3577