diff --git a/tests/e2e/redoc.spec.js b/tests/e2e/redoc.spec.js index 24861182..ed8c4e72 100644 --- a/tests/e2e/redoc.spec.js +++ b/tests/e2e/redoc.spec.js @@ -41,6 +41,13 @@ describe('APIs.guru specs test', ()=> { // global.apisGuruList was loaded in onPrepare method of protractor config let apisGuruList = global.apisGuruList; + + // Remove certain APIs that are known to cause problems + delete apisGuruList['motaword.com']; // invalid (see https://github.com/BigstickCarpet/swagger-parser/issues/26) + delete apisGuruList['learnifier.com']; // allof object and no type + delete apisGuruList['googleapis.com:mirror']; // bad urls in images + delete apisGuruList['googleapis.com:discovery']; // non-string references + for (let apiName of Object.keys(apisGuruList)) { let apiInfo = apisGuruList[apiName].versions[apisGuruList[apiName].preferred]; let url = apiInfo.swaggerUrl;