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

Move prometheus_header specs to jest

parent fe85fc63
......@@ -10,6 +10,6 @@ export default {
</script>
<template>
<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>
</template>
......@@ -18,7 +18,7 @@ describe('Prometheus Header component', () => {
describe('Prometheus header component', () => {
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');
});
......
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