Merge pull request #1753 from roramirez/tests-404-vendors

Tests 404 vendors
This commit is contained in:
Michael Teeuw 2019-08-16 13:17:46 +02:00 committed by GitHub
commit 1b2673367e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View File

@ -11,17 +11,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
*This release is scheduled to be released on 2019-10-01.* *This release is scheduled to be released on 2019-10-01.*
### Added
- Adding a Malay (Malaysian) translation for MagicMirror²
### Added ### Added
- Spanish translation for "PRECIP" - Spanish translation for "PRECIP"
- Adding a Malay (Malaysian) translation for MagicMirror²
- Add test check URLs of vendors 200 and 404 HTTP CODE.
### Updated
- Updatenotification module: Display update notification for a limited (configurable) time.
- Enabled e2e/vendor_spec.js tests
### Updated ### Updated
- Updatenotification module: Display update notification for a limited (configurable) time. - Updatenotification module: Display update notification for a limited (configurable) time.
- The css/custom.css will be rename after the next release. We've add into `run-start.sh` a instruction by GIT to ignore with `--skip-worktree` and `rm --cached`. The history about this change [#1540]. - The css/custom.css will be rename after the next release. We've add into `run-start.sh` a instruction by GIT to ignore with `--skip-worktree` and `rm --cached`. The history about this change [#1540].
### Fixed ### Fixed
- Updatenotification module: Properly handle race conditions, prevent crash. - Updatenotification module: Properly handle race conditions, prevent crash.
- Send `NEWS_FEED` notification also for the first news messages which are shown - Send `NEWS_FEED` notification also for the first news messages which are shown

View File

@ -9,7 +9,6 @@ const after = global.after;
describe("Vendors", function () { describe("Vendors", function () {
return; // Test still getting failed in Travis
helpers.setupTimeout(this); helpers.setupTimeout(this);
@ -40,5 +39,14 @@ describe("Vendors", function () {
}); });
}); });
}); });
Object.keys(vendors).forEach(vendor => {
it(`should return 404 HTTP code for vendor https://localhost/"${vendor}"`, function() {
urlVendor = "http://localhost:8080/" + vendors[vendor];
request.get(urlVendor, function (err, res, body) {
expect(res.statusCode).to.equal(404);
});
});
});
}); });
}); });