test for #932
This commit is contained in:
@@ -24,7 +24,7 @@ var elements = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
describe('swagger 1.x spec tests', function (done) {
|
describe('swagger 1.x spec tests', function (done) {
|
||||||
this.timeout(10 * 10000);
|
this.timeout(10 * 1000);
|
||||||
var swaggerUI, specServer, driver;
|
var swaggerUI, specServer, driver;
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
@@ -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){
|
it('should find the user link', function(done){
|
||||||
var locator = webdriver.By.xpath("//*[@data-id='user']");
|
var locator = webdriver.By.xpath("//*[@data-id='user']");
|
||||||
driver.isElementPresent(locator).then(function (isPresent) {
|
driver.isElementPresent(locator).then(function (isPresent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user