Don't use getElementById in specs.

This commit is contained in:
Bryce Johnson 2017-05-22 20:49:26 -04:00
parent 5aee04dd4a
commit 095fa89b95
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});
});