0
0
Fork 0

Add end-to-end (system) tests (#25461)

This commit is contained in:
Renaud Chaput 2023-07-28 23:09:49 +02:00 committed by GitHub
parent 8d5d707cc1
commit 4d1b67f664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 298 additions and 5 deletions

View file

@ -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