discourse/spec/system/page_objects/pages/user_preferences_profile.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
613 B
Ruby
Raw Normal View History

# 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