Skip to content

Commit

Permalink
test(Tooltip): add tabindex unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyu.chen committed May 20, 2019
1 parent 7581444 commit 9239a87
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/specs/tooltip.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ describe('Tooltip', () => {
}, 100);
});
});
it('custom tabindex', () => {
vm = createVue(`
<el-tooltip ref="tooltip" content="提示文字" :tabindex="-1">
<button>click</button>
</el-tooltip>
`, true);
expect(vm.$el.getAttribute('tabindex')).to.be.equal('-1');
});
});

0 comments on commit 9239a87

Please sign in to comment.