Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/components/pajamas/radio_component_spec.rb')
-rw-r--r--spec/components/pajamas/radio_component_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/components/pajamas/radio_component_spec.rb b/spec/components/pajamas/radio_component_spec.rb
index 3885d101c7a..8df432746d0 100644
--- a/spec/components/pajamas/radio_component_spec.rb
+++ b/spec/components/pajamas/radio_component_spec.rb
@@ -13,7 +13,7 @@ RSpec.describe Pajamas::RadioComponent, :aggregate_failures, type: :component do
RSpec.shared_examples 'it renders unchecked radio' do
it 'renders unchecked radio' do
- expect(rendered_component).to have_unchecked_field(label)
+ expect(page).to have_unchecked_field(label)
end
end
@@ -58,11 +58,11 @@ RSpec.describe Pajamas::RadioComponent, :aggregate_failures, type: :component do
include_examples 'it renders help text'
it 'renders checked radio' do
- expect(rendered_component).to have_checked_field(label, class: radio_options[:class])
+ expect(page).to have_checked_field(label, class: radio_options[:class])
end
it 'adds CSS class to label' do
- expect(rendered_component).to have_selector('label.label-foo-bar')
+ expect(page).to have_selector('label.label-foo-bar')
end
end