提交 095fa89b 编写于 作者: B Bryce Johnson

Don't use getElementById in specs.

上级 5aee04dd
......@@ -177,7 +177,7 @@ describe('MRWidgetReadyToMerge', () => {
});
it('should be disabled in the rendered output', () => {
const checkboxElement = vm.$el.getElementById('remove-source-branch-input');
const checkboxElement = vm.$el.querySelector('#remove-source-branch-input');
expect(checkboxElement.getAttribute('disabled')).toBe('disabled');
});
});
......@@ -194,7 +194,7 @@ describe('MRWidgetReadyToMerge', () => {
});
it('should be enabled in rendered output', () => {
const checkboxElement = this.customVm.$el.getElementById('remove-source-branch-input');
const checkboxElement = this.customVm.$el.querySelector('#remove-source-branch-input');
expect(checkboxElement.getAttribute('disabled')).toBeNull();
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册