diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d8b7aec..c2490fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Add in option to wrap long calendar events to multiple lines using `wrapEvents` configuration option. - Add test e2e `show title newsfeed` for newsfeed module. - Add task to check configuration file. -- Add test check URLs of vendors. +- Add test check URLs of vendors 200 and 404 HTTP CODE. - Add test default modules present modules/default/defaultmodules.js. ### Updated diff --git a/tests/e2e/vendor_spec.js b/tests/e2e/vendor_spec.js index 39abf906..d9cef31e 100644 --- a/tests/e2e/vendor_spec.js +++ b/tests/e2e/vendor_spec.js @@ -32,5 +32,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); + }); + }); + }); }); });