@@ -4,7 +4,7 @@ const {browserName, version} = browser.desiredCapabilities
4
4
const isChrome = browserName === 'chrome'
5
5
const isFireFox = browserName === 'firefox'
6
6
const isIE = browserName === 'internet explorer'
7
- // const isIE9 = isIE && version === '9'
7
+ const isIE9 = isIE && version === '9'
8
8
// const isIE10 = isIE && version === '10'
9
9
// const isIE11 = isIE && version === '11.103'
10
10
@@ -137,14 +137,16 @@ const autoselectExample = () => {
137
137
browser . setValue ( input , '' ) // Prevent autofilling, IE likes to do this.
138
138
} )
139
139
140
- it ( 'should display hint' , ( ) => {
141
- browser . click ( input )
142
- browser . setValue ( input , 'ita' )
143
- browser . waitForVisible ( menu )
144
- expect ( browser . isVisible ( menu ) ) . to . equal ( true )
145
- expect ( browser . isVisible ( hint ) ) . to . equal ( true )
146
- expect ( browser . getValue ( hint ) ) . to . equal ( 'italy' )
147
- } )
140
+ if ( ! isIE9 ) {
141
+ it ( 'should display hint' , ( ) => {
142
+ browser . click ( input )
143
+ browser . setValue ( input , 'ita' )
144
+ browser . waitForVisible ( menu )
145
+ expect ( browser . isVisible ( menu ) ) . to . equal ( true )
146
+ expect ( browser . isVisible ( hint ) ) . to . equal ( true )
147
+ expect ( browser . getValue ( hint ) ) . to . equal ( 'italy' )
148
+ } )
149
+ }
148
150
} )
149
151
}
150
152
@@ -160,14 +162,17 @@ const doNotDisplayHintExample = () => {
160
162
beforeEach ( ( ) => {
161
163
browser . setValue ( input , '' ) // Prevent autofilling, IE likes to do this.
162
164
} )
165
+
163
166
164
- it ( 'should not display hint' , ( ) => {
165
- browser . click ( input )
166
- browser . setValue ( input , 'ita' )
167
- browser . waitForVisible ( menu )
168
- expect ( browser . isVisible ( menu ) ) . to . equal ( true )
169
- expect ( browser . isVisible ( hint ) ) . to . equal ( false )
170
- } )
167
+ if ( ! isIE9 ) {
168
+ it ( 'should not display hint' , ( ) => {
169
+ browser . click ( input )
170
+ browser . setValue ( input , 'ita' )
171
+ browser . waitForVisible ( menu )
172
+ expect ( browser . isVisible ( menu ) ) . to . equal ( true )
173
+ expect ( browser . isVisible ( hint ) ) . to . equal ( false )
174
+ } )
175
+ }
171
176
} )
172
177
}
173
178
0 commit comments