Commit c2c98b56 authored by Frederic Caplette's avatar Frederic Caplette

Use new CSS selector in dashboard specs

This is a temporary fix as using css classes to target
elements in tests is flaky. We will need to find a proper
solution once we have fix this problem.
parent 02a65e82
...@@ -374,7 +374,6 @@ export default { ...@@ -374,7 +374,6 @@ export default {
:graph-data="graphData" :graph-data="graphData"
v-bind="$attrs" v-bind="$attrs"
v-on="$listeners" v-on="$listeners"
class="js-basic-chart"
/> />
<component <component
:is="timeSeriesChartComponent" :is="timeSeriesChartComponent"
......
...@@ -78,7 +78,7 @@ describe 'Cluster Health board', :js, :kubeclient, :use_clean_rails_memory_store ...@@ -78,7 +78,7 @@ describe 'Cluster Health board', :js, :kubeclient, :use_clean_rails_memory_store
expect(page).to have_css('.prometheus-graph') expect(page).to have_css('.prometheus-graph')
expect(page).to have_css('.prometheus-graph-title') expect(page).to have_css('.prometheus-graph-title')
expect(page).to have_css('[_echarts_instance_]') expect(page).to have_css('[_echarts_instance_]')
expect(page).to have_css('.js-basic-chart') expect(page).to have_css('.gl-legend-inline')
end end
end end
......
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