This commit is contained in:
Roman Hotsiy 2016-10-31 10:15:15 +02:00
parent 9389d7dc15
commit 0a2bede7a9
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 11 additions and 4 deletions

View File

@ -84,7 +84,7 @@
"karma-webpack": "^1.8.0",
"node-sass": "^3.8.0",
"phantomjs-prebuilt": "^2.1.7",
"protractor": "^4.0.4",
"protractor": "^4.0.10",
"raw-loader": "^0.5.1",
"rxjs": "5.0.0-beta.12",
"shelljs": "^0.7.0",

View File

@ -16,17 +16,24 @@ function basicTests(swaggerUrl, title) {
beforeEach((done) => {
browser.get(specUrl);
fixFFTest(done);
var EC = protractor.ExpectedConditions;
var $apiInfo = $('api-info');
var $errorMessage = $('.redoc-error')
browser.wait(EC.or(EC.visibilityOf($apiInfo), EC.visibilityOf($errorMessage)), 60000);
});
afterEach(() => {
verifyNoBrowserErrors();
});
it('should init redoc without errors', () => {
it('should init redoc without errors', (done) => {
let $redoc = $('redoc');
expect($redoc.isPresent()).toBe(true);
setTimeout(() => {
let $methods = $$('method');
expect($methods.count()).toBeGreaterThan(0);
done();
});
});
});
}