Add end-to-end (system) tests (#25461)
This commit is contained in:
parent
8d5d707cc1
commit
4d1b67f664
10 changed files with 298 additions and 5 deletions
|
@ -9,6 +9,8 @@ module ProfileStories
|
|||
email: email, password: password, confirmed_at: confirmed_at,
|
||||
account: Fabricate(:account, username: 'bob')
|
||||
)
|
||||
|
||||
Web::Setting.where(user: bob).first_or_initialize(user: bob).update!(data: { introductionVersion: 201812160442020 }) if finished_onboarding # rubocop:disable Style/NumericLiterals
|
||||
end
|
||||
|
||||
def as_a_logged_in_user
|
||||
|
@ -42,4 +44,8 @@ module ProfileStories
|
|||
def password
|
||||
@password ||= 'password'
|
||||
end
|
||||
|
||||
def finished_onboarding
|
||||
@finished_onboarding || false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue