From d3bb507edca112124115ed88fb03cf14440d95ef Mon Sep 17 00:00:00 2001 From: adolfo bernal Date: Wed, 30 Sep 2020 15:49:09 -0500 Subject: [PATCH] fix: gamestop false positives (#395) Fixed issue where gamestop would generate false positives because the string add to cart was still included even when there was no stock available. Just added the outOfStock label to look for not available, which is actually displayed on the button. --- src/store/model/gamestop.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/model/gamestop.ts b/src/store/model/gamestop.ts index 8d965f0..38417d0 100644 --- a/src/store/model/gamestop.ts +++ b/src/store/model/gamestop.ts @@ -5,6 +5,10 @@ export const Gamestop: Store = { inStock: { container: '.add-to-cart', text: ['add to cart'] + }, + outOfStock: { + container: '.add-to-cart', + text: ['not available'] } }, links: [