Skip to content

Commit 3478734

Browse files
committed
test for swagger-api#932
1 parent 283647d commit 3478734

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/e2e/v1.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var elements = [
2424
];
2525

2626
describe('swagger 1.x spec tests', function (done) {
27-
this.timeout(10 * 10000);
27+
this.timeout(10 * 1000);
2828
var swaggerUI, specServer, driver;
2929

3030
before(function () {
@@ -89,6 +89,14 @@ describe('swagger 1.x spec tests', function (done) {
8989
});
9090
});
9191

92+
it('should find the pet resource description', function(done){
93+
var locator = webdriver.By.xpath("//div[contains(., 'Operations about pets')]");
94+
driver.findElements(locator).then(function (elements) {
95+
expect(elements.length).to.not.equal(0);
96+
done();
97+
});
98+
});
99+
92100
it('should find the user link', function(done){
93101
var locator = webdriver.By.xpath("//*[@data-id='user']");
94102
driver.isElementPresent(locator).then(function (isPresent) {

0 commit comments

Comments
 (0)