diff --git a/CHANGELOG.md b/CHANGELOG.md index dad0723..075676d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This component follows *Semantic Versioning* (aka SemVer), visit (http://semver. - Removed duplicated `auto-validate` attribute from paper-autocomplete (thanks to @kaseyhinton). - Fixed regression: `onClear()` now triggers `'autocomplete-reset-blur'` event (as is documented in the API) and *not* the event `'autocomplete-reset'`. +- Added integration with SauceLabs so now test can be run against multiple platforms and browsers. ## Release 3.0.0 (2017-07-16) diff --git a/README.md b/README.md index e99e60a..b51979b 100644 --- a/README.md +++ b/README.md @@ -65,26 +65,21 @@ After running this command, it will open two different ports in the dev browser ## How to run the tests +### Localy + In order to run the tests you have two option. You can either run: ``` npm run test ``` -or you can run: +### Remote (in Saucelabs) ``` -npm run start +npm run test:remote ``` +> You must set these two environment variables: `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` before running remote tests. -And then open this URL: [http://localhost:8080/components/paper-autocomplete/test/](http://localhost:8080/components/paper-autocomplete/test/) - -**Please note:** at this moment there is a known issues and these two tests always fail: - -``` -ARIA state and property values must be valid -Attributes which refer to other elements by ID should refer to elements which exist in the DOM -``` ## How to *lint* the project diff --git a/package.json b/package.json index c39b25f..6bacdfc 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "start": "polymer serve -o", "postinstall": "bower i", "test": "polymer test --plugin local", - "test:sauce": "polymer test --plugin sauce", + "test:remote": "polymer test --plugin sauce", "lint": "eslint --cache paper-autocomplete*.html test/paper*.html && polymer lint paper-autocomplete*.html --rules polymer-2-hybrid", "publish-docs": "./publish-docs.sh", "variants": "polymer install --variants && polymer serve -o -H 0.0.0.0",