topmonks / heureka-extension

Ověřte si běžnou cenu produktu bez nutnosti opouštět prohlížený e-shop
https://chrome.google.com/webstore/detail/jmhkgcmmgjblnkjkbgjggkaeifacakgi
18 stars 6 forks source link

Get rid of the spreadsheet – all configuration unified to scrawelers.js #17

Closed Strajk closed 4 years ago

Strajk commented 4 years ago

Remove spreadsheet

All configuration unified to scrawelers.js.

const scrawlers = {
  alza: {
    test: "#detailItem",
    name: "h1",
    price: ".price_withVat, #prices .c2",
    render: { target: ".priceDetail" },
    origin: "https://www.alza.{cz,sk}",
    exampleProductPath: "iphone-11?dq=5669250",
  },

New e-shops, new screenshots

New notation for TLDs

Based on standard UNIX Brace expansion standard Simple, yet expressive enough

origin: "https://www.alza.{cz,sk}",
origin: "https://www.czc.cz",
...

Small style adjustments

Cypress – do not fail on page exceptions

As many shops ships bugs to production, apparently. :D

Add Jest for unit tests

https://take.ms/yZLKw

Add npm run generate-info command

For generating info about supported shops to README

Misc

Add package-lock.json

Strajk commented 4 years ago

I've done proper E2E testing by buying a new bike, for the best price ofc :D