Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #303 from Osmose/test-page-transfer
Browse files Browse the repository at this point in the history
Switch to using a Mozilla-hosted test page.
  • Loading branch information
Osmose authored Jan 25, 2019
2 parents 6c2730e + 93830b1 commit efe9156
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ Reducers, action creators, etc. are organized into [ducks][] inside the `src/sta

## Testing

### Fake Product Test Page

A [fake product page][] is available for testing the add-on. The price on the page changes upon refresh, and URL parameters can be used to manually set the price.

See the [github repo][fake-page-repo] for more details.

[fake product page]: https://mozilla.github.io/fake-product-page/
[fake-page-repo]: https://github.com/mozilla/fake-product-page/

### Running Tests

Automated tests are run in a Firefox browser instance using [Marionette][]. We use the Python client for Marionette since there is no up-to-date JavaScript client.
Expand Down
3 changes: 1 addition & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ const CONFIG = {
'www.homedepot.com',
'walmart.com',
'www.walmart.com',
'mkelly.me',
'www.mkelly.me',
'mozilla.github.io',
]),

/** Temporary Cyber Monday study UI feature flag */
Expand Down
2 changes: 1 addition & 1 deletion src/extraction/selector/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const fallbackExtractionData = [
},
},
{
domains: ['mkelly.me', 'www.mkelly.me'],
domains: ['mozilla.github.io'],
features: {
title: [
['#title', fromProperty('innerText')],
Expand Down
4 changes: 2 additions & 2 deletions src/state/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const VENDORS = [
faviconUrl: browser.runtime.getURL('/img/favicons/walmart.ico'),
},
{
name: 'mkelly Test',
hostnames: ['mkelly.me', 'www.mkelly.me'],
name: 'Fake Test Page',
hostnames: ['mozilla.github.io'],
faviconUrl: '',
},
];
Expand Down
2 changes: 1 addition & 1 deletion web-ext-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'[email protected]=10000',
],
startUrl: [
'http://www.mkelly.me/fake-product-page/',
'http://mozilla.github.io/fake-product-page/',
],
},
};

0 comments on commit efe9156

Please sign in to comment.