Commit d95fa852 authored by Jose Vargas's avatar Jose Vargas

Change selector in tests

parent e8efbd68
...@@ -84,6 +84,7 @@ export default { ...@@ -84,6 +84,7 @@ export default {
:key="index" :key="index"
:is-checked="selectedMonth === month" :is-checked="selectedMonth === month"
is-check-item is-check-item
data-testid="month-dropdown-item"
@click="changeSelectedMonth(month)" @click="changeSelectedMonth(month)"
> >
{{ month }} {{ month }}
......
...@@ -26,7 +26,7 @@ RSpec.describe 'CI minutes', :js do ...@@ -26,7 +26,7 @@ RSpec.describe 'CI minutes', :js do
page.find('[data-testid="project-month-dropdown"]').click page.find('[data-testid="project-month-dropdown"]').click
page.within '[data-testid="project-month-dropdown"]' do page.within '[data-testid="project-month-dropdown"]' do
expect(page.all('.gl-new-dropdown-item').size).to eq 2 expect(page.all('[data-testid="month-dropdown-item"]').size).to eq 2
end end
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