Commit 84313c80 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'jivanvl-update-prometheus-header-spec' into 'master'

Move prometheus_header specs to jest

See merge request gitlab-org/gitlab!22036
parents 5f900b87 856b50b0
......@@ -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