Skip to content

Commit

Permalink
Fix spec selector for project include toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Bädorf authored and oliverguenther committed May 17, 2022
1 parent 31eb7e6 commit 0091980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion spec/support/components/project_include_component.rb
Expand Up @@ -61,7 +61,7 @@ def toggle_checkbox(project_id)

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

Expand Down

0 comments on commit 0091980

Please sign in to comment.