Skip to content

Commit f5dde42

Browse files
committed
Don't run hint tests on IE9
IE9 doesn't get a hint because it doesn't support pointer events.
1 parent ce04a96 commit f5dde42

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

test/integration/index.js

+20-16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {browserName, version} = browser.desiredCapabilities
44
const isChrome = browserName === 'chrome'
55
const isFireFox = browserName === 'firefox'
66
const isIE = browserName === 'internet explorer'
7-
// const isIE9 = isIE && version === '9'
7+
const isIE9 = isIE && version === '9'
88
// const isIE10 = isIE && version === '10'
99
// const isIE11 = isIE && version === '11.103'
1010

@@ -137,14 +137,16 @@ const autoselectExample = () => {
137137
browser.setValue(input, '') // Prevent autofilling, IE likes to do this.
138138
})
139139

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+
}
148150
})
149151
}
150152

@@ -161,13 +163,15 @@ const doNotDisplayHintExample = () => {
161163
browser.setValue(input, '') // Prevent autofilling, IE likes to do this.
162164
})
163165

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-
})
166+
if (!isIE9) {
167+
it('should not display hint', () => {
168+
browser.click(input)
169+
browser.setValue(input, 'ita')
170+
browser.waitForVisible(menu)
171+
expect(browser.isVisible(menu)).to.equal(true)
172+
expect(browser.isVisible(hint)).to.equal(false)
173+
})
174+
}
171175
})
172176
}
173177

0 commit comments

Comments
 (0)