Skip to content

Commit 93af090

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 93af090

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

test/integration/index.js

+21-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

@@ -160,14 +162,17 @@ const doNotDisplayHintExample = () => {
160162
beforeEach(() => {
161163
browser.setValue(input, '') // Prevent autofilling, IE likes to do this.
162164
})
165+
163166

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+
}
171176
})
172177
}
173178

0 commit comments

Comments
 (0)