mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-19 00:53:51 -05:00
Verify page content in 2FA portion of auth/sessions
controller spec (#33891)
This commit is contained in:
parent
4c597d5e2c
commit
aa10e8f399
@ -223,8 +223,8 @@ RSpec.describe Auth::SessionsController do
|
||||
end
|
||||
|
||||
it 'renders two factor authentication page' do
|
||||
expect(controller).to render_template('two_factor')
|
||||
expect(controller).to render_template(partial: '_otp_authentication_form')
|
||||
expect(response.body)
|
||||
.to include(I18n.t('simple_form.hints.sessions.otp'))
|
||||
end
|
||||
end
|
||||
|
||||
@ -239,8 +239,8 @@ RSpec.describe Auth::SessionsController do
|
||||
end
|
||||
|
||||
it 'renders two factor authentication page' do
|
||||
expect(controller).to render_template('two_factor')
|
||||
expect(controller).to render_template(partial: '_otp_authentication_form')
|
||||
expect(response.body)
|
||||
.to include(I18n.t('simple_form.hints.sessions.otp'))
|
||||
end
|
||||
end
|
||||
|
||||
@ -250,8 +250,8 @@ RSpec.describe Auth::SessionsController do
|
||||
end
|
||||
|
||||
it 'renders two factor authentication page' do
|
||||
expect(controller).to render_template('two_factor')
|
||||
expect(controller).to render_template(partial: '_otp_authentication_form')
|
||||
expect(response.body)
|
||||
.to include(I18n.t('simple_form.hints.sessions.otp'))
|
||||
end
|
||||
end
|
||||
|
||||
@ -378,8 +378,8 @@ RSpec.describe Auth::SessionsController do
|
||||
end
|
||||
|
||||
it 'renders webauthn authentication page' do
|
||||
expect(controller).to render_template('two_factor')
|
||||
expect(controller).to render_template(partial: '_webauthn_form')
|
||||
expect(response.body)
|
||||
.to include(I18n.t('simple_form.title.sessions.webauthn'))
|
||||
end
|
||||
end
|
||||
|
||||
@ -389,8 +389,8 @@ RSpec.describe Auth::SessionsController do
|
||||
end
|
||||
|
||||
it 'renders webauthn authentication page' do
|
||||
expect(controller).to render_template('two_factor')
|
||||
expect(controller).to render_template(partial: '_webauthn_form')
|
||||
expect(response.body)
|
||||
.to include(I18n.t('simple_form.title.sessions.webauthn'))
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user