Skip to content

Commit

Permalink
test for swagger-api#932
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Feb 12, 2015
1 parent 0c5e45b commit 7c0ae49
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/e2e/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var elements = [
];

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

before(function () {
Expand Down Expand Up @@ -89,6 +89,14 @@ describe('swagger 1.x spec tests', function (done) {
});
});

it('should find the pet resource description', function(done){
var locator = webdriver.By.xpath("//div[contains(., 'Operations about pets')]");
driver.findElements(locator).then(function (elements) {
expect(elements.length).to.not.equal(0);
done();
});
});

it('should find the user link', function(done){
var locator = webdriver.By.xpath("//*[@data-id='user']");
driver.isElementPresent(locator).then(function (isPresent) {
Expand Down

0 comments on commit 7c0ae49

Please sign in to comment.