Skip to content

Commit 22a4d77

Browse files
committed
fix select2 e2e test in phantomjs
1 parent 9d57879 commit 22a4d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/specs/select2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
.assert.containsText('p', 'Selected: 0')
99
.assert.containsText('span.select2', 'Select one')
1010

11-
.click('span.select2')
11+
.moveToElement('span.select2', 5, 5).mouseButtonClick()
1212
.assert.count('.select2-results__option', 3)
1313
.assert.containsText('.select2-results__option:nth-child(1)', 'Select one')
1414
.assert.containsText('.select2-results__option:nth-child(2)', 'Hello')
@@ -24,7 +24,7 @@ module.exports = {
2424
.execute(function () {
2525
vm.options.push({ id: 3, text: 'Vue' })
2626
})
27-
.click('span.select2')
27+
.moveToElement('span.select2', 5, 5).mouseButtonClick()
2828
.assert.count('.select2-results__option', 4)
2929
.assert.containsText('.select2-results__option:nth-child(1)', 'Select one')
3030
.assert.containsText('.select2-results__option:nth-child(2)', 'Hello')

0 commit comments

Comments
 (0)