added tags to test

This commit is contained in:
Tony Tam
2015-02-19 22:00:17 -08:00
committed by Mohsen Azimi
parent bcfa028f53
commit d70af2f3a5
2 changed files with 30 additions and 0 deletions

View File

@@ -105,6 +105,14 @@ describe('swagger 2.0 spec tests', function (done) {
});
});
it('should find the pet resource description', function(done){
var locator = webdriver.By.xpath("//div[contains(., 'Everything about your 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) {