Commit 095fa89b authored by Bryce Johnson's avatar Bryce Johnson

Don't use getElementById in specs.

parent 5aee04dd
...@@ -177,7 +177,7 @@ describe('MRWidgetReadyToMerge', () => { ...@@ -177,7 +177,7 @@ describe('MRWidgetReadyToMerge', () => {
}); });
it('should be disabled in the rendered output', () => { 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'); expect(checkboxElement.getAttribute('disabled')).toBe('disabled');
}); });
}); });
...@@ -194,7 +194,7 @@ describe('MRWidgetReadyToMerge', () => { ...@@ -194,7 +194,7 @@ describe('MRWidgetReadyToMerge', () => {
}); });
it('should be enabled in rendered output', () => { 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(); expect(checkboxElement.getAttribute('disabled')).toBeNull();
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment