Commit 3478734 1 parent 283647d commit 3478734 Copy full SHA for 3478734
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ var elements = [
24
24
] ;
25
25
26
26
describe ( 'swagger 1.x spec tests' , function ( done ) {
27
- this . timeout ( 10 * 10000 ) ;
27
+ this . timeout ( 10 * 1000 ) ;
28
28
var swaggerUI , specServer , driver ;
29
29
30
30
before ( function ( ) {
@@ -89,6 +89,14 @@ describe('swagger 1.x spec tests', function (done) {
89
89
} ) ;
90
90
} ) ;
91
91
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
+
92
100
it ( 'should find the user link' , function ( done ) {
93
101
var locator = webdriver . By . xpath ( "//*[@data-id='user']" ) ;
94
102
driver . isElementPresent ( locator ) . then ( function ( isPresent ) {
You can’t perform that action at this time.
0 commit comments