Commit 856b50b0 authored by Jose Vargas's avatar Jose Vargas

Move prometheus_header specs to jest

parent fe85fc63
...@@ -10,6 +10,6 @@ export default { ...@@ -10,6 +10,6 @@ export default {
</script> </script>
<template> <template>
<div class="prometheus-graph-header"> <div class="prometheus-graph-header">
<h5 class="prometheus-graph-title js-graph-title">{{ graphTitle }}</h5> <h5 ref="title" class="prometheus-graph-title">{{ graphTitle }}</h5>
</div> </div>
</template> </template>
...@@ -18,7 +18,7 @@ describe('Prometheus Header component', () => { ...@@ -18,7 +18,7 @@ describe('Prometheus Header component', () => {
describe('Prometheus header component', () => { describe('Prometheus header component', () => {
it('should show a title', () => { it('should show a title', () => {
const title = prometheusHeader.vm.$el.querySelector('.js-graph-title').textContent; const title = prometheusHeader.find({ ref: 'title' }).text();
expect(title).toBe('graph header'); expect(title).toBe('graph header');
}); });
......
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