mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 08:03:43 +08:00
1045d22b41
When editing your bio in your user profile and then saving it, it would be removed from the profile header section.
This was broken for over 7 years since ae68795d82
was merged 😅
Context - https://meta.discourse.org/t/after-saving-changes-to-profile-expanding-full-profile-only-shows-half/314118
29 lines
613 B
Ruby
29 lines
613 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class UserPreferencesProfile < PageObjects::Pages::Base
|
|
def visit(user)
|
|
page.visit("/u/#{user.username}/preferences/profile")
|
|
self
|
|
end
|
|
|
|
def expand_profile_details
|
|
find(".user-main .details .controls .btn-default").click
|
|
end
|
|
|
|
def fill_bio(with:)
|
|
find(".bio-composer .d-editor-input").fill_in(with:)
|
|
end
|
|
|
|
def save
|
|
find(".save-button .btn-primary").click
|
|
end
|
|
|
|
def cooked_bio
|
|
find(".user-main .details .primary .bio")
|
|
end
|
|
end
|
|
end
|
|
end
|