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

fix: bestbuy label container selector precision #491

Merged
merged 2 commits into from
Oct 12, 2020
Merged

fix: bestbuy label container selector precision #491

merged 2 commits into from
Oct 12, 2020

Conversation

admon84
Copy link
Contributor

@admon84 admon84 commented Oct 11, 2020

Description

Possibly fixes #488

I updated the label container selectors for both inStock and maxPrice to have better precision, beginning with [data-sticky-media-gallery]` to focus the search in the primary product offering on the page.

The previous container selectors allowed more elements to be selected on the page unintentionally, such as elements lower in the page in "Frequently bought together" and "Most-viewed sponsored products", which may have been a factor in issue #488

Testing

I tested the bestbuy store to verify the test card shows "IN STOCK" and 30 series cards are all showing "OUT OF STOCK" as expected.

New dependencies

N/A

@admon84 admon84 requested a review from jef as a code owner October 11, 2020 04:09
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

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

Makes sense to me. Thanks!

@jef
Copy link
Owner

jef commented Oct 12, 2020

The previous container selectors allowed more elements to be selected on the page unintentionally

That's not any good.

@jef jef merged commit cbc3b0b into jef:main Oct 12, 2020
AdamSaketume26 pushed a commit to AdamSaketume26/nvidia-snatcher that referenced this pull request Oct 16, 2020
@admon84 admon84 deleted the issue-488 branch October 19, 2020 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Best Buy 3090 FE drop on Oct 9 2pm CST not detected
2 participants