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

feat(stores-nz): update labels #2486

Merged
merged 15 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/store/model/mightyape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ export const MightyApe: Store = {
labels: {
inStock: [
{
container:
'body > div.page-container > div.page.listing.details.not-in-trolley.category.category-games.category-controllers > div > main > section.product-summary-top > div > div > div.product-summary > div.trolley-button-and-product-options > div.trolley-button-section > div.purchase-options > form > div > button',
text: ['Add to Trolley'],
container: 'div.status',
text: [' In stock at '],
},
],
outOfStock: [
{
container:
'body > div.page-container > div.page.listing.details.not-in-trolley.category.category-games.category-ps5-consoles > div > main > section.product-summary-top > div > div > div.product-summary.unavailable > div.pricing-stock > div > div.status',
container: 'div.status',
text: [' Unavailable '],
},
],
Expand Down
18 changes: 3 additions & 15 deletions src/store/model/thewarehouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,11 @@ import {Store} from './store';
export const TheWarehouse: Store = {
currency: '$',
labels: {
inStock: {
outOfStock: {
container:
'#maincontent > div.container.product-detail.product-wrapper.pb-xl.pb-lg-xxxl > div > div:nth-child(2) > div.col-12.col-md-6.col-lg-5 > div > div.product-buying-box > div.cart-and-ipay.mt-md > div > div > button > span',
text: ['Add to Cart', 'Find in Store'],
'#maincontent > div.container.product-detail.product-wrapper.pb-xl.pb-lg-xxxl > div > div:nth-child(2) > div.col-12.col-md-6.col-lg-5 > div > div.product-buying-box > div.cart-and-ipay.mt-md > div > div > button:disabled',
text: ['Add to Cart'],
},
outOfStock: [
{
container:
'#maincontent > div.container.product-detail.product-wrapper.pb-xl.pb-lg-xxxl > div > div:nth-child(2) > div.col-12.col-md-6.col-lg-5 > div > div.product-buying-box > div.cart-and-ipay.mt-md > div > div > button > span',
text: ['Out of Stock'],
},
{
container:
'#maincontent > div.container.product-detail.product-wrapper.pb-xl.pb-lg-xxxl > div > div:nth-child(2) > div.col-12.col-md-6.col-lg-5 > div > div.product-buying-box > div.cart-and-ipay.mt-md > div > div > div > div',
text: ['Out of Stock'],
},
],
},
links: [
{
Expand Down