Extrude fill_in_auth_details
method to ProfileStories
spec support module (#31163)
This commit is contained in:
parent
6ad477d146
commit
95eadabe44
3 changed files with 12 additions and 18 deletions
|
@ -3,6 +3,8 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'Using OAuth from an external app' do
|
||||
include ProfileStories
|
||||
|
||||
subject { visit "/oauth/authorize?#{params.to_query}" }
|
||||
|
||||
let(:client_app) { Doorkeeper::Application.create!(name: 'test', redirect_uri: about_url(host: Rails.application.config.x.local_domain), scopes: 'read') }
|
||||
|
@ -246,12 +248,6 @@ describe 'Using OAuth from an external app' do
|
|||
|
||||
private
|
||||
|
||||
def fill_in_auth_details(email, password)
|
||||
fill_in 'user_email', with: email
|
||||
fill_in 'user_password', with: password
|
||||
click_on I18n.t('auth.login')
|
||||
end
|
||||
|
||||
def fill_in_otp_details(value)
|
||||
fill_in 'user_otp_attempt', with: value
|
||||
click_on I18n.t('auth.login')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue