Fix spec selector for project include toggle

pull/10694/head
Benjamin Bädorf 2 years ago committed by Oliver Günther
parent 31eb7e6529
commit 009198051b
  1. 1
      frontend/src/app/spot/components/toggle/toggle.component.html
  2. 2
      spec/support/components/project_include_component.rb

@ -1,6 +1,7 @@
<label
*ngFor="let option of options"
[ngClass]="{ 'button': true, 'form--field-inline-button': true, '-active': value === option.value }"
data-qa-selector="spot-toggle--option"
>
<input
class="spot-toggle--option-input"

@ -61,7 +61,7 @@ module Components
def set_filter_selected(filter)
within_body do
page.find("label.spot-toggle--option", text: filter ? 'Only selected' : 'All projects').click
page.find("[data-qa-selector='spot-toggle--option']", text: filter ? 'Only selected' : 'All projects').click
end
end

Loading…
Cancel
Save