Skip to content

Commit

Permalink
Progress : fix stroke height the text wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdaodao committed Nov 3, 2021
1 parent 9ef6682 commit cde08ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/specs/progress.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ describe('Progress', () => {
it('should work with stroke-width', () => {
vm = createVue({
template: `
<el-progress :text-inside="true" :stroke-width="36" :percentage="0"></el-progress>
<el-progress :text-inside="true" :stroke-width="50" :percentage="0"></el-progress>
`
}, true);
expect(vm.$el.querySelector('.el-progress-bar__innerText').offsetTop).to.be.equal(12);
expect(vm.$el.querySelector('.el-progress-bar__innerText').offsetTop).to.be.equal(9);
expect(vm.$el.querySelector('.el-progress-bar__innerText').style.fontSize).to.be.equal('32px');
});
it('color', () => {
vm = createVue({
Expand Down

0 comments on commit cde08ce

Please sign in to comment.