chore: update selectors, remove api lookup for now

Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-12-04 17:05:28 -05:00
parent 75ee95b221
commit e67d97fe93
3 changed files with 9 additions and 8 deletions
+7 -6
View File
@@ -354,13 +354,14 @@ async function lookupCardInStock(store: Store, page: Page, link: Link) {
} }
} }
// Fixme: currently causing issues
// Do API inventory validation in realtime (no cache) if available // Do API inventory validation in realtime (no cache) if available
if ( // if (
store.realTimeInventoryLookup !== undefined && // store.realTimeInventoryLookup !== undefined &&
link.itemNumber !== undefined // link.itemNumber !== undefined
) { // ) {
return store.realTimeInventoryLookup(link.itemNumber); // return store.realTimeInventoryLookup(link.itemNumber);
} // }
return true; return true;
} }
+1 -1
View File
@@ -18,7 +18,7 @@ export const BestBuy: Store = {
model: 'test:model', model: 'test:model',
series: 'test:series', series: 'test:series',
url: url:
'https://www.bestbuy.com/site/evga-sc-ultra-gaming-nvidia-geforce-gtx-1660-ti-6gb-gddr6-pci-express-3-0-graphics-card-black-gray/6373500.p?skuId=6373500&intl=nosplash' 'https://www.bestbuy.com/site/insignia-8qt-digital-multi-cooker-stainless-steel/6258941.p?skuId=6258941&intl=nosplash'
}, },
{ {
brand: 'nvidia', brand: 'nvidia',
+1 -1
View File
@@ -8,7 +8,7 @@ export const Newegg: Store = {
text: ['are you a human?'] text: ['are you a human?']
}, },
inStock: { inStock: {
container: 'div#ProductBuy .btn-primary', container: '#ProductBuy',
text: ['add to cart'] text: ['add to cart']
}, },
maxPrice: { maxPrice: {