Skip to content

Commit

Permalink
change placement of test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdembe committed Nov 26, 2024
1 parent 239ea00 commit bac7f21
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions spec/components/webauthn_input_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@
)
end

context 'with show_unsupported_passkey option true' do
let(:options) { super().merge(show_unsupported_passkey: true) }

it 'renders with show-unsupported-passkey attribute' do
expect(rendered).to have_css(
'lg-webauthn-input[hidden][show-unsupported-passkey]',
visible: false,
)
end
end

context 'with show_unsupported_passkey option' do
context 'with show_unsupported_passkey option false' do
let(:options) { super().merge(show_unsupported_passkey: false) }
Expand All @@ -96,6 +85,17 @@
)
end
end

context 'with show_unsupported_passkey option true' do
let(:options) { super().merge(show_unsupported_passkey: true) }

it 'renders with show-unsupported-passkey attribute' do
expect(rendered).to have_css(
'lg-webauthn-input[hidden][show-unsupported-passkey]',
visible: false,
)
end
end
end
end
end
Expand Down

0 comments on commit bac7f21

Please sign in to comment.